Oauth2
extends 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
Constants
- 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.
Properties
- $availableScopes : mixed
- $batchPath : mixed
- $resource : mixed
- $rootUrl : mixed
- $servicePath : mixed
- $userinfo : mixed
- $userinfo_v2_me : mixed
- $version : mixed
- $base_methods : mixed
- $client : mixed
Methods
- __construct() : mixed
- Constructs the internal representation of the Oauth2 service.
- createBatch() : Batch
- Create a new HTTP Batch handler for this service
- getClient() : Client
- Return the associated Google\Client class.
- tokeninfo() : 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([Client|array<string|int, mixed> $clientOrConfig = [] ][, string $rootUrl = null ]) : mixed
Parameters
- $clientOrConfig : Client|array<string|int, mixed> = []
-
The client used to deliver requests, or a config array to pass to a new Client instance.
- $rootUrl : string = null
-
The root URL used for requests to the service.
createBatch()
Create a new HTTP Batch handler for this service
public
createBatch() : Batch
Return values
BatchgetClient()
Return the associated Google\Client class.
public
getClient() : Client
Return values
Clienttokeninfo()
(tokeninfo)
public
tokeninfo([array<string|int, mixed> $optParams = [] ]) : Tokeninfo
Parameters
- $optParams : array<string|int, mixed> = []
-
Optional parameters.