MCPcopy Index your code
hub / github.com/dropbox/dropbox-sdk-python / auth_token_from_oauth1

Method auth_token_from_oauth1

dropbox/base.py:69–97  ·  view source on GitHub ↗

Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token. :param str oauth1_token: The supplied OAuth 1.0 access token. :param str oauth1_token_secret: The token secret associated with the supplied access token. :rtype: :class:`

(self,
                               oauth1_token,
                               oauth1_token_secret)

Source from the content-addressed store, hash-verified

67 # Routes in auth namespace
68
69 def auth_token_from_oauth1(self,
70 oauth1_token,
71 oauth1_token_secret):
72 """
73 Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access
74 token.
75
76 :param str oauth1_token: The supplied OAuth 1.0 access token.
77 :param str oauth1_token_secret: The token secret associated with the
78 supplied access token.
79 :rtype: :class:`dropbox.auth.TokenFromOAuth1Result`
80 :raises: :class:`.exceptions.ApiError`
81
82 If this raises, ApiError will contain:
83 :class:`dropbox.auth.TokenFromOAuth1Error`
84 """
85 warnings.warn(
86 'token/from_oauth1 is deprecated.',
87 DeprecationWarning,
88 )
89 arg = auth.TokenFromOAuth1Arg(oauth1_token,
90 oauth1_token_secret)
91 r = self.request(
92 auth.token_from_oauth1,
93 'auth',
94 arg,
95 None,
96 )
97 return r
98
99 def auth_token_revoke(self):
100 """

Callers

nothing calls this directly

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected