Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Http_REST Class Reference

Static Public Member Functions

static createRequestUri ($servicePath, $restPath, $params)
 Parse/expand request parameters and create a fully qualified request uri.
 
static decodeHttpResponse ($response, Google_Client $client=null)
 Decode an HTTP Response.
 
static doExecute (Google_Client $client, Google_Http_Request $req)
 Executes a Google_Http_Request.
 
static execute (Google_Client $client, Google_Http_Request $req)
 Executes a Google_Http_Request and (if applicable) automatically retries when errors occur.
 

Member Function Documentation

◆ createRequestUri()

static Google_Http_REST::createRequestUri ( $servicePath,
$restPath,
$params )
static

Parse/expand request parameters and create a fully qualified request uri.

Parameters
string$servicePath
string$restPath
array$params
Return values
string\$requestUrl

◆ decodeHttpResponse()

static Google_Http_REST::decodeHttpResponse ( $response,
Google_Client $client = null )
static

Decode an HTTP Response.

Exceptions
Google_Service_Exception
Parameters
Google_Http_Request$responseThe http response to be decoded.
Google_Client$client
Return values
mixed|null

◆ doExecute()

static Google_Http_REST::doExecute ( Google_Client $client,
Google_Http_Request $req )
static

Executes a Google_Http_Request.

Parameters
Google_Client$client
Google_Http_Request$req
Return values
arraydecoded result
Exceptions
Google_Service_Exceptionon server side error (ie: not authenticated, invalid or malformed post body, invalid url)

◆ execute()

static Google_Http_REST::execute ( Google_Client $client,
Google_Http_Request $req )
static

Executes a Google_Http_Request and (if applicable) automatically retries when errors occur.

Parameters
Google_Client$client
Google_Http_Request$req
Return values
arraydecoded result
Exceptions
Google_Service_Exceptionon server side error (ie: not authenticated, invalid or malformed post body, invalid url)

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