a-blog cms PHP API Reference

GoogleApi
in package

Table of Contents

Properties

$accessTokenConfigKey  : string
$bid  : int
$client  : Google_Client
$config  : Field
$jsonPathConfigKey  : string
$scopes  : string
$setid  : int|null

Methods

getAccessToken()  : array<string|int, mixed>
Get access token.
getAccessTokenConfigKey()  : string
アクセストークンを保存するコンフィグのキーを取得する
getClient()  : Google_Client
Get Google Client
getScopes()  : string
APIのスコープを取得
init()  : void
初期化
setAuthConfig()  : void
認証情報をセット
updateAccessToken()  : void
Update access token.

Properties

$accessTokenConfigKey

private string $accessTokenConfigKey = 'mail_google_smtp_access_token'

$jsonPathConfigKey

private string $jsonPathConfigKey = 'mail_google_smtp_clientid_json'

$scopes

private string $scopes = 'https://mail.google.com/'

Methods

getAccessToken()

Get access token.

public getAccessToken() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAccessTokenConfigKey()

アクセストークンを保存するコンフィグのキーを取得する

public getAccessTokenConfigKey() : string
Return values
string

getClient()

Get Google Client

public getClient() : Google_Client
Return values
Google_Client

getScopes()

APIのスコープを取得

public getScopes() : string
Return values
string

init()

初期化

public init(int $bid[, null|int $setid = null ]) : void
Parameters
$bid : int
$setid : null|int = null
Tags
throws
InvalidArgumentException
throws
RuntimeException
throws
Google_Exception

setAuthConfig()

認証情報をセット

public setAuthConfig(string $json) : void
Parameters
$json : string
Tags
throws
InvalidArgumentException
throws
RuntimeException
throws
Google_Exception

updateAccessToken()

Update access token.

public updateAccessToken(string $accessToken) : void
Parameters
$accessToken : string

        
On this page

Search results