OAuthTokenService#
- class OAuthTokenService[source]#
- get_all(*, page_size=20)[source]#
Get all OAuth tokens of the current user.
- Parameters:
page_size (
int
) – The size of a single page, maximum is 50.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
The token.
- Return type:
Response[OAuthToken]
- post(json_body)[source]#
Create an OAuth token for the specified provider.
- Parameters:
json_body (
PostOAuthTokenData
) – The body of the request. SeePostOAuthTokenData
for information about the possible fields. You can provide this data as aPostOAuthTokenData
or as a dictionary.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
The OAuth callback URL.
- Return type:
- get(*, token_id, is_temp_id=False)[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.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
The requested token.
- Return type:
- delete(*, token_id)[source]#
Delete an OAuth token.
- Parameters:
token_id (
str
) – The id of the token you want to delete.self (OAuthTokenService[AuthenticatedClient]) –
- Returns:
Nothing.
- Return type:
None