
If there is aĬorresponding refresh token for the access token, this disables that If this raises, ApiError will contain: 1Error auth_token_revoke ( ) ¶ĭisables the access token used to authenticate the call. oauth1_token_secret ( str) – The token secret associated with the.
oauth1_token ( str) – The supplied OAuth 1.0 access token. If this raises, ApiError will contain: auth_token_from_oauth1 ( oauth1_token, oauth1_token_secret ) ¶Ĭreates an OAuth 2.0 access token from the supplied OAuth 1.0 access Photo ( ) – Image to set as the user’s new profile photo. Route attributes: scope: account_info.write Parameters: If left blank, default certificate location will be used ca_certs ( str) – path to CA certificate. Refresh will request all available scopes for application scope ( list) – list of scopes to request on refresh. Not required if PKCE was used to authorize the token app_secret ( str) – application secret of requesting application used for token refresh.
app_key ( str) – application key of requesting application used for token refresh. oauth2_access_token_expiration ( datetime) – Expiration for oauth2_access_token.
oauth2_refresh_token ( str) – OAuth2 refresh token for refreshing access token. After the timeout the client will give up onĬonnection. timeout ( Optional ) – Maximum duration in seconds thatĬlient will wait for any single packet from the. headers ( dict) – Additional headers to add to requests. To share a session across multiple clients, use session ( ) – If not provided, a new session (connection pool) isĬreated. “/OfficialDropboxPythonSDKv2/_version_” to the user_agent, Recommend you use the format “AppName/Version”. Helps us identify requests coming from your application. user_agent ( str) – The user agent to use when making requests. max_retries_on_rate_limit ( Optional ) – On 429 errors, the. max_retries_on_error ( int) – On 5xx errors, the number of times to. oauth2_access_token ( str) – OAuth2 access token for making client. _init_ ( oauth2_access_token=None, max_retries_on_error=4, max_retries_on_rate_limit=None, user_agent=None, session=None, headers=None, timeout=100, oauth2_refresh_token=None, oauth2_access_token_expiration=None, app_key=None, app_secret=None, scope=None, ca_certs=None ) ¶ Parameters: Methods of this class are meant to act on the corresponding user’sĭropbox. Use this class to make requests to the Dropbox API using a user’s access Dropbox ( oauth2_access_token=None, max_retries_on_error=4, max_retries_on_rate_limit=None, user_agent=None, session=None, headers=None, timeout=100, oauth2_refresh_token=None, oauth2_access_token_expiration=None, app_key=None, app_secret=None, scope=None, ca_certs=None ) ¶īases: dropbox.dropbox_client._DropboxTransport, Import dropbox from "././" import consts from "././consts.mjs" import fs from "fs" import got from "got" import common from "./ – Dropbox ¶ class dropbox.dropbox_client.