SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class GoogleDriveApi

Variables

NameVisibilityDescription
$domain (static) 

Functions

NameVisibilityDescription
apiRequestpublic (static)Performs an API request
getConfigpublic (static)Loads Oauth2 config
getTokenpublic (static)Load Oauth2 token. May cause a token refresh
refreshOauthTokenpublic (static) 
requestOauthCodepublic (static)Request an Oauth2 code
saveOauthTokenpublic (static)Save Oauth token

public apiRequest

array GoogleDriveApi::apiRequest ( string $method , string $url [, array $data [, bool $headers ]] );

Performs an API request

public getConfig

array GoogleDriveApi::getConfig ( );

Loads Oauth2 config

public getToken

mixed GoogleDriveApi::getToken ( );

Load Oauth2 token. May cause a token refresh

public refreshOauthToken

void GoogleDriveApi::refreshOauthToken ( mixed $token );

This function does not have a description

public requestOauthCode

void GoogleDriveApi::requestOauthCode ( );

Request an Oauth2 code

public saveOauthToken

array GoogleDriveApi::saveOauthToken ( string $code );

Save Oauth token