Skip to content

Commit d634791

Browse files
authored
Update OAuth.py Formatting (dropbox#226)
Fixed list formatting and updated punctuation
1 parent 7b75667 commit d634791

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

dropbox/oauth.py

+14-15
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ def __init__(self, consumer_key, consumer_secret=None, locale=None, token_access
288288
"""
289289
Construct an instance.
290290
291-
Parameters
292291
:param str consumer_key: Your API app's "app key".
293292
:param str consumer_secret: Your API app's "app secret".
294293
:param str locale: The locale of the user of your application. For
@@ -297,19 +296,19 @@ def __init__(self, consumer_key, consumer_secret=None, locale=None, token_access
297296
By default, the server uses "en_US".
298297
:param str token_access_type: the type of token to be requested.
299298
From the following enum:
300-
legacy - creates one long-lived token with no expiration
301-
online - create one short-lived token with an expiration
302-
offline - create one short-lived token with an expiration with a refresh token
299+
* legacy - creates one long-lived token with no expiration
300+
* online - create one short-lived token with an expiration
301+
* offline - create one short-lived token with an expiration with a refresh token
303302
:param list scope: list of scopes to request in base oauth flow. If left blank,
304-
will default to all scopes for app
303+
will default to all scopes for app.
305304
:param str include_granted_scopes: which scopes to include from previous grants
306305
From the following enum:
307-
user - include user scopes in the grant
308-
team - include team scopes in the grant
309-
Note: if this user has never linked the app, include_granted_scopes must be None
306+
* user - include user scopes in the grant
307+
* team - include team scopes in the grant
308+
* Note: if this user has never linked the app, include_granted_scopes must be None
310309
:param bool use_pkce: Whether or not to use Sha256 based PKCE. PKCE should be only use on
311310
client apps which doesn't call your server. It is less secure than non-PKCE flow but
312-
can be used if you are unable to safely retrieve your app secret
311+
can be used if you are unable to safely retrieve your app secret.
313312
:param Optional[float] timeout: Maximum duration in seconds that
314313
client will wait for any single packet from the
315314
server. After the timeout the client will give up on
@@ -391,15 +390,15 @@ def __init__(self, consumer_key, redirect_uri, session,
391390
By default, the server uses "en_US".
392391
:param str token_access_type: the type of token to be requested.
393392
From the following enum:
394-
legacy - creates one long-lived token with no expiration
395-
online - create one short-lived token with an expiration
396-
offline - create one short-lived token with an expiration with a refresh token
393+
* legacy - creates one long-lived token with no expiration
394+
* online - create one short-lived token with an expiration
395+
* offline - create one short-lived token with an expiration with a refresh token
397396
:param list scope: list of scopes to request in base oauth flow. If left blank,
398-
will default to all scopes for app
397+
will default to all scopes for app.
399398
:param str include_granted_scopes: which scopes to include from previous grants
400399
From the following enum:
401-
user - include user scopes in the grant
402-
team - include team scopes in the grant
400+
* user - include user scopes in the grant
401+
* team - include team scopes in the grant
403402
Note: if this user has never linked the app, include_granted_scopes must be None
404403
:param bool use_pkce: Whether or not to use Sha256 based PKCE
405404
:param Optional[float] timeout: Maximum duration in seconds that

0 commit comments

Comments
 (0)