@_helpers.positional(<NUM_LIT:8>)<EOL><INDENT>def __init__(self, access_token, client_id, client_secret, refresh_token,<EOL>token_expiry, token_uri, user_agent, revoke_uri=None,<EOL>id_token=None, token_response=None, scopes=None,<EOL>token_info_uri=None, id_token_jwt=None):<DEDENT>
self.access_token = access_token<EOL>self.client_id = client_id<EOL>self.client_secret = client_secret<EOL>self.refresh_token = refresh_token<EOL>self.store = None<EOL>self.token_expiry = token_expiry<EOL>self.token_uri = token_uri<EOL>self.user_agent = user_agent<EOL>self.revoke_uri = revoke_uri<EOL>self.id_token = id_token<EOL>self.id_token_jwt = id_token_jwt<EOL>self.token_response = token_response<EOL>self.scopes = set(_helpers.string_to_scopes(scopes or []))<EOL>self.token_info_uri = token_info_uri<EOL>self.invalid = False<EOL>
Create an instance of OAuth2Credentials.

        This constructor is not usually called by the user, instead
        OAuth2Credentials objects are instantiated by the OAuth2WebServerFlow.

        Args:
            access_token: string, access token.
            client_id: string, client identifier.
            client_secret: string, client secret.
            refresh_token: string, refresh token.
            token_expiry: datetime, when the access_token expires.
            token_uri: string, URI of token endpoint.
            user_agent: string, The HTTP User-Agent to provide for this
                        application.
            revoke_uri: string, URI for revoke endpoint. Defaults to None; a
                        token can't be revoked if this is None.
            id_token: object, The identity of the resource owner.
            token_response: dict, the decoded response to the token request.
                            None if a token hasn't been requested yet. Stored
                            because some providers (e.g. wordpress.com) include
                            extra fields that clients may want.
            scopes: list, authorized scopes for these credentials.
            token_info_uri: string, the URI for the token info endpoint.
                            Defaults to None; scopes can not be refreshed if
                            this is None.
            id_token_jwt: string, the encoded and signed identity JWT. The
                          decoded version of this is stored in id_token.

        Notes:
            store: callable, A callable that when passed a Credential
                   will store the credential back to where it came from.
                   This is needed to store the latest access_token if it
                   has expired and been refreshed.