Create Tokens
Get Oauth2 Dropbox Tokens
client.agents.evaluationMetrics.oauth2.dropbox.createTokens(DropboxCreateTokensParams { code, redirect_url } body?, RequestOptionsoptions?): DropboxCreateTokensResponse { token, refresh_token }
/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
Returns
Get Oauth2 Dropbox Tokens
import Gradient from '@digitalocean/gradient';
const client = new Gradient();
const response = await client.agents.evaluationMetrics.oauth2.dropbox.createTokens();
console.log(response.token);
{
"token": "example string",
"refresh_token": "example string"
}
Returns Examples
{
"token": "example string",
"refresh_token": "example string"
}