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'
$bid
private
int
$bid
$client
private
Google_Client
$client
$config
private
Field
$config
$jsonPathConfigKey
private
string
$jsonPathConfigKey
= 'mail_google_smtp_clientid_json'
$scopes
private
string
$scopes
= 'https://mail.google.com/'
$setid
private
int|null
$setid
= null
Methods
getAccessToken()
Get access token.
public
getAccessToken() : array<string|int, mixed>
Return values
array<string|int, mixed>getAccessTokenConfigKey()
アクセストークンを保存するコンフィグのキーを取得する
public
getAccessTokenConfigKey() : string
Return values
stringgetClient()
Get Google Client
public
getClient() : Google_Client
Return values
Google_ClientgetScopes()
APIのスコープを取得
public
getScopes() : string
Return values
stringinit()
初期化
public
init(int $bid[, null|int $setid = null ]) : void
Parameters
- $bid : int
- $setid : null|int = null
Tags
setAuthConfig()
認証情報をセット
public
setAuthConfig(string $json) : void
Parameters
- $json : string
Tags
updateAccessToken()
Update access token.
public
updateAccessToken(string $accessToken) : void
Parameters
- $accessToken : string