Google_Service_Oauth2
extends Google_Service
in package
Service definition for Oauth2 (v2).
Obtains end-user authorization grants for use with other Google APIs.
For more information about this service, see the API Documentation
Tags
Table of Contents
- OPENID = "openid"
- Associate you with your personal info on Google.
- USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"
- View your email address.
- USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"
- See your personal info, including any personal info you've made publicly available.
- $availableScopes : mixed
- $batchPath : mixed
- $resource : mixed
- $rootUrl : mixed
- $servicePath : mixed
- $userinfo : mixed
- $userinfo_v2_me : mixed
- $version : mixed
- $base_methods : mixed
- $client : mixed
- __construct() : mixed
- Constructs the internal representation of the Oauth2 service.
- createBatch() : Google_Http_Batch
- Create a new HTTP Batch handler for this service
- getClient() : Google_Client
- Return the associated Google_Client class.
- tokeninfo() : Google_Service_Oauth2_Tokeninfo
- (tokeninfo)
Constants
OPENID
Associate you with your personal info on Google.
public
mixed
OPENID
= "openid"
USERINFO_EMAIL
View your email address.
public
mixed
USERINFO_EMAIL
= "https://www.googleapis.com/auth/userinfo.email"
USERINFO_PROFILE
See your personal info, including any personal info you've made publicly available.
public
mixed
USERINFO_PROFILE
= "https://www.googleapis.com/auth/userinfo.profile"
Properties
$availableScopes
public
mixed
$availableScopes
$batchPath
public
mixed
$batchPath
$resource
public
mixed
$resource
$rootUrl
public
mixed
$rootUrl
$servicePath
public
mixed
$servicePath
$userinfo
public
mixed
$userinfo
$userinfo_v2_me
public
mixed
$userinfo_v2_me
$version
public
mixed
$version
$base_methods
private
mixed
$base_methods
$client
private
mixed
$client
Methods
__construct()
Constructs the internal representation of the Oauth2 service.
public
__construct(Google_Client $client[, string $rootUrl = null ]) : mixed
Parameters
- $client : Google_Client
-
The client used to deliver requests.
- $rootUrl : string = null
-
The root URL used for requests to the service.
Return values
mixed —createBatch()
Create a new HTTP Batch handler for this service
public
createBatch() : Google_Http_Batch
Return values
Google_Http_Batch —getClient()
Return the associated Google_Client class.
public
getClient() : Google_Client
Return values
Google_Client —tokeninfo()
(tokeninfo)
public
tokeninfo([array<string|int, mixed> $optParams = array() ]) : Google_Service_Oauth2_Tokeninfo
Parameters
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.