Documentation

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 = ''

$clientSecret

private mixed $clientSecret = ''

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
since
6.0
access

public

getAccessToken()

Exchanges the verifier code with the access token.

public getAccessToken([mixed $verifier = '' ]) : mixed
Parameters
$verifier : mixed = ''
Tags
since
6.0
access

public

getAuthorizeURL()

Get the authorize URL

public getAuthorizeURL([mixed $token = '' ]) : mixed
Parameters
$token : mixed = ''
Tags
returns

a string

getClient()

Retrieves the client library

public getClient() : mixed
Tags
since
3.3.0
access

public

getDriveFiles()

Retrieves file lists from gdrive

public getDriveFiles(mixed $token[, mixed $pageToken = '' ][, mixed $search = '' ]) : mixed
Parameters
$token : mixed
$pageToken : mixed = ''
$search : mixed = ''
Tags
since
6.0
access

public

getRequestToken()

public getRequestToken() : mixed

getUserInfo()

Retrieves google signed in user name

public getUserInfo(mixed $token) : mixed
Parameters
$token : mixed
Tags
since
6.0
access

public

readDriveFile()

read the file content from gdrive

public readDriveFile(mixed $token, mixed $docId) : mixed
Parameters
$token : mixed
$docId : mixed
Tags
since
3.3.0
access

public

revokeAccessToken()

Revoke google access token

public revokeAccessToken(mixed $token) : mixed
Parameters
$token : mixed
Tags
since
6.0
access

public


        
On this page

Search results