GoogleOAuth2¶
-
class
googleoauth2.
GoogleOAuth2
(client_id, client_secret)¶ Create a Google Analytics service.
Variables: - client_id – The client_id obtained from the APIs Console. Indicates the client that is making the request. The value passed in this parameter must exactly match the value shown in the APIs Console.
- client_id – str
Service methods¶
-
GoogleOAuth2.
access_token
(code, redirect_uri)¶ Get the access and/or refresh token
Variables: - code (str) – The authorization code returned from the initial request
- redirect_uri (str) – The URI registered with the application
-
GoogleOAuth2.
refresh_token
(refresh_token)¶ Refresh the access token
Variables: refresh_token – The refresh token returned from the authorization code exchange