GoogleOauth
in package
Table of Contents
Properties
- $_access_token : mixed
- $callback : mixed
- $clientId : mixed
- $clientSecret : mixed
- $type : mixed
- $uid : mixed
Methods
- __construct() : mixed
- Exchanges the verifier code with the access token.
- getAccessToken() : mixed
- Exchanges the verifier code with the access token.
- getAuthorizeURL() : mixed
- Get the authorize URL
- getClient() : mixed
- Retrieves the client library
- getDriveFiles() : mixed
- Retrieves file lists from gdrive
- getRequestToken() : mixed
- getUserInfo() : mixed
- Retrieves google signed in user name
- readDriveFile() : mixed
- read the file content from gdrive
- revokeAccessToken() : mixed
- Revoke google access token
Properties
$_access_token
public
mixed
$_access_token
= ''
$callback
public
mixed
$callback
= ''
$clientId
private
mixed
$clientId
= ''
$clientSecret
private
mixed
$clientSecret
= ''
$type
private
mixed
$type
= 'google'
$uid
private
mixed
$uid
= ''
Methods
__construct()
Exchanges the verifier code with the access token.
public
__construct(mixed $clientId, mixed $clientSecret, mixed $callback) : mixed
Parameters
- $clientId : mixed
- $clientSecret : mixed
- $callback : mixed
Tags
getAccessToken()
Exchanges the verifier code with the access token.
public
getAccessToken([mixed $verifier = '' ]) : mixed
Parameters
- $verifier : mixed = ''
Tags
getAuthorizeURL()
Get the authorize URL
public
getAuthorizeURL([mixed $token = '' ]) : mixed
Parameters
- $token : mixed = ''
Tags
getClient()
Retrieves the client library
public
getClient() : mixed
Tags
getDriveFiles()
Retrieves file lists from gdrive
public
getDriveFiles(mixed $token[, mixed $pageToken = '' ][, mixed $search = '' ]) : mixed
Parameters
- $token : mixed
- $pageToken : mixed = ''
- $search : mixed = ''
Tags
getRequestToken()
public
getRequestToken() : mixed
getUserInfo()
Retrieves google signed in user name
public
getUserInfo(mixed $token) : mixed
Parameters
- $token : mixed
Tags
readDriveFile()
read the file content from gdrive
public
readDriveFile(mixed $token, mixed $docId) : mixed
Parameters
- $token : mixed
- $docId : mixed
Tags
revokeAccessToken()
Revoke google access token
public
revokeAccessToken(mixed $token) : mixed
Parameters
- $token : mixed