def __init__(self, client_id=None, client=None, token=None):
self._client = client or WebApplicationClient(client_id, token=token)<EOL>if token:<EOL><INDENT>for k, v in token.items():<EOL><INDENT>setattr(self._client, k, v)<EOL><DEDENT><DEDENT>
Construct a new OAuth 2 authorization object.

        :param client_id: Client id obtained during registration
        :param client: :class:`oauthlib.oauth2.Client` to be used. Default is
                       WebApplicationClient which is useful for any
                       hosted application but not mobile or desktop.
        :param token: Token dictionary, must include access_token
                      and token_type.