dropbox.auth – Auth

class dropbox.auth.AccessError(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

Error occurred because the account doesn’t have permission to access the resource.

This class acts as a tagged union. Only one of the is_* methods will return true. To get the associated value of a tag (if one exists), use the corresponding get_* method.

Variables:
get_invalid_account_type()

Current account type cannot access the resource.

Only call this if is_invalid_account_type() is true.

Return type:InvalidAccountTypeError
get_paper_access_denied()

Current account cannot access Paper.

Only call this if is_paper_access_denied() is true.

Return type:PaperAccessError
classmethod invalid_account_type(val)

Create an instance of this class set to the invalid_account_type tag with value val.

Parameters:val (InvalidAccountTypeError) –
Return type:AccessError
is_invalid_account_type()

Check if the union tag is invalid_account_type.

Return type:bool
is_other()

Check if the union tag is other.

Return type:bool
is_paper_access_denied()

Check if the union tag is paper_access_denied.

Return type:bool
other = AccessError(u'other', None)
classmethod paper_access_denied(val)

Create an instance of this class set to the paper_access_denied tag with value val.

Parameters:val (PaperAccessError) –
Return type:AccessError
class dropbox.auth.AuthError(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

Errors occurred during authentication.

This class acts as a tagged union. Only one of the is_* methods will return true. To get the associated value of a tag (if one exists), use the corresponding get_* method.

Variables:
expired_access_token = AuthError(u'expired_access_token', None)
get_missing_scope()

The access token does not have the required scope to access the route.

Only call this if is_missing_scope() is true.

Return type:TokenScopeError
invalid_access_token = AuthError(u'invalid_access_token', None)
invalid_select_admin = AuthError(u'invalid_select_admin', None)
invalid_select_user = AuthError(u'invalid_select_user', None)
is_expired_access_token()

Check if the union tag is expired_access_token.

Return type:bool
is_invalid_access_token()

Check if the union tag is invalid_access_token.

Return type:bool
is_invalid_select_admin()

Check if the union tag is invalid_select_admin.

Return type:bool
is_invalid_select_user()

Check if the union tag is invalid_select_user.

Return type:bool
is_missing_scope()

Check if the union tag is missing_scope.

Return type:bool
is_other()

Check if the union tag is other.

Return type:bool
is_route_access_denied()

Check if the union tag is route_access_denied.

Return type:bool
is_user_suspended()

Check if the union tag is user_suspended.

Return type:bool
classmethod missing_scope(val)

Create an instance of this class set to the missing_scope tag with value val.

Parameters:val (TokenScopeError) –
Return type:AuthError
other = AuthError(u'other', None)
route_access_denied = AuthError(u'route_access_denied', None)
user_suspended = AuthError(u'user_suspended', None)
class dropbox.auth.InvalidAccountTypeError(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

This class acts as a tagged union. Only one of the is_* methods will return true. To get the associated value of a tag (if one exists), use the corresponding get_* method.

Variables:
endpoint = InvalidAccountTypeError(u'endpoint', None)
feature = InvalidAccountTypeError(u'feature', None)
is_endpoint()

Check if the union tag is endpoint.

Return type:bool
is_feature()

Check if the union tag is feature.

Return type:bool
is_other()

Check if the union tag is other.

Return type:bool
other = InvalidAccountTypeError(u'other', None)
class dropbox.auth.PaperAccessError(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

This class acts as a tagged union. Only one of the is_* methods will return true. To get the associated value of a tag (if one exists), use the corresponding get_* method.

Variables:
is_not_paper_user()

Check if the union tag is not_paper_user.

Return type:bool
is_other()

Check if the union tag is other.

Return type:bool
is_paper_disabled()

Check if the union tag is paper_disabled.

Return type:bool
not_paper_user = PaperAccessError(u'not_paper_user', None)
other = PaperAccessError(u'other', None)
paper_disabled = PaperAccessError(u'paper_disabled', None)
class dropbox.auth.RateLimitError(reason=None, retry_after=None)

Bases: stone.backends.python_rsrc.stone_base.Struct

Error occurred because the app is being rate limited.

Variables:
__init__(reason=None, retry_after=None)

x.__init__(…) initializes x; see help(type(x)) for signature

reason
retry_after
class dropbox.auth.RateLimitReason(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

This class acts as a tagged union. Only one of the is_* methods will return true. To get the associated value of a tag (if one exists), use the corresponding get_* method.

Variables:
is_other()

Check if the union tag is other.

Return type:bool
is_too_many_requests()

Check if the union tag is too_many_requests.

Return type:bool
is_too_many_write_operations()

Check if the union tag is too_many_write_operations.

Return type:bool
other = RateLimitReason(u'other', None)
too_many_requests = RateLimitReason(u'too_many_requests', None)
too_many_write_operations = RateLimitReason(u'too_many_write_operations', None)
class dropbox.auth.TokenFromOAuth1Arg(oauth1_token=None, oauth1_token_secret=None)

Bases: stone.backends.python_rsrc.stone_base.Struct

Variables:
__init__(oauth1_token=None, oauth1_token_secret=None)

x.__init__(…) initializes x; see help(type(x)) for signature

oauth1_token
oauth1_token_secret
class dropbox.auth.TokenFromOAuth1Error(tag, value=None)

Bases: stone.backends.python_rsrc.stone_base.Union

This class acts as a tagged union. Only one of the is_* methods will return true. To get the associated value of a tag (if one exists), use the corresponding get_* method.

Variables:
app_id_mismatch = TokenFromOAuth1Error(u'app_id_mismatch', None)
invalid_oauth1_token_info = TokenFromOAuth1Error(u'invalid_oauth1_token_info', None)
is_app_id_mismatch()

Check if the union tag is app_id_mismatch.

Return type:bool
is_invalid_oauth1_token_info()

Check if the union tag is invalid_oauth1_token_info.

Return type:bool
is_other()

Check if the union tag is other.

Return type:bool
other = TokenFromOAuth1Error(u'other', None)
class dropbox.auth.TokenFromOAuth1Result(oauth2_token=None)

Bases: stone.backends.python_rsrc.stone_base.Struct

Variables:auth.TokenFromOAuth1Result.oauth2_token – The OAuth 2.0 token generated from the supplied OAuth 1.0 token.
__init__(oauth2_token=None)

x.__init__(…) initializes x; see help(type(x)) for signature

oauth2_token
class dropbox.auth.TokenScopeError(required_scope=None)

Bases: stone.backends.python_rsrc.stone_base.Struct

Variables:auth.TokenScopeError.required_scope – The required scope to access the route.
__init__(required_scope=None)

x.__init__(…) initializes x; see help(type(x)) for signature

required_scope