Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
repository_googledocs\rest Class Reference

Google Drive Rest API. More...

Inheritance diagram for repository_googledocs\rest:
core\oauth2\rest

Public Member Functions

 call ($functionname, $functionargs, $rawpost=false, $contenttype=false)
 Call a function from the Api with a set of arguments and optional data.
 
 get_api_functions ()
 Define the functions of the rest API.
 

Protected Attributes

curl $curl
 $curl
 

Detailed Description

Google Drive Rest API.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ call()

core\oauth2\rest::call ( $functionname,
$functionargs,
$rawpost = false,
$contenttype = false )
inherited

Call a function from the Api with a set of arguments and optional data.

Parameters
string$functionname
array$functionargs
string$rawpostOptional param to include in the body of a post.
string$contenttypeThe MIME type for the request's Content-Type header.
Return values
string|stdClass

Reimplemented in repository_nextcloud\ocs_client.

◆ get_api_functions()

repository_googledocs\rest::get_api_functions ( )

Define the functions of the rest API.

Return values
arrayExample: [ 'listFiles' => [ 'method' => 'get', 'endpoint' => 'http://...', 'args' => [ 'folder' => PARAM_STRING ] ] ]

Reimplemented from core\oauth2\rest.


The documentation for this class was generated from the following file: