OAuthTokenService#
- class OAuthTokenService[source]#
- get_all(*, extra_parameters=None)[source]#
Get all OAuth tokens of the current user.
- Parameters:
extra_parameters (
Optional
[Mapping
[str
,Union
[str
,bool
,int
,float
]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
The token.
- Return type:
- post(json_body, *, extra_parameters=None)[source]#
Create an OAuth token for the specified provider.
- Parameters:
json_body (
Union
[dict
,list
,PostOAuthTokenData
]) – The body of the request. SeePostOAuthTokenData
for information about the possible fields. You can provide this data as aPostOAuthTokenData
or as a dictionary.extra_parameters (
Optional
[Mapping
[str
,Union
[str
,bool
,int
,float
]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
The OAuth callback URL.
- Return type:
- get(*, token_id, is_temp_id=False, extra_parameters=None)[source]#
Get an OAuth token by id.
- Parameters:
token_id (
str
) – The id of the token to get.is_temp_id (
bool
) – Whether the id in the request is a temp_id or an id.extra_parameters (
Optional
[Mapping
[str
,Union
[str
,bool
,int
,float
]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
The requested token.
- Return type: