Get Oauth2 Dropbox Tokens
agents.evaluation_metrics.oauth2.dropbox.create_tokens(DropboxCreateTokensParams**kwargs) -> DropboxCreateTokensResponse
/v2/gen-ai/oauth2/dropbox/tokens
To obtain the refresh token, needed for creation of data sources, send a GET request to /v2/gen-ai/oauth2/dropbox/tokens. Pass the code you obtrained from the oauth flow in the field 'code'
Parameters
code: Optional[str]
The oauth2 code from google
redirect_url: Optional[str]
Redirect url
Returns
Get Oauth2 Dropbox Tokens
from gradient import Gradient
client = Gradient(
access_token="My Access Token",
)
response = client.agents.evaluation_metrics.oauth2.dropbox.create_tokens()
print(response.token)
{
"token": "example string",
"refresh_token": "example string"
}Returns Examples
{
"token": "example string",
"refresh_token": "example string"
}