Created
December 7, 2015 10:17
-
-
Save santosh79/ea97edc1c926b204c1f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
securitySchemes: | |
- oauth_2_0: | |
description: | | |
Dropbox supports OAuth 2.0 for authenticating all API requests. | |
type: OAuth 2.0 | |
describedBy: | |
headers: | |
Authorization: | |
description: | | |
Used to send a valid OAuth 2 access token. Do not use | |
with the "access_token" query string parameter. | |
type: string | |
queryParameters: | |
access_token: | |
description: | | |
Used to send a valid OAuth 2 access token. Do not use together with | |
the "Authorization" header | |
type: string | |
responses: | |
401: | |
description: | | |
Bad or expired token. This can happen if the user or Dropbox | |
revoked or expired an access token. To fix, you should re- | |
authenticate the user. | |
403: | |
description: | | |
Bad OAuth request (wrong consumer key, bad nonce, expired | |
timestamp...). Unfortunately, re-authenticating the user won't help here. | |
settings: | |
authorizationUri: https://www.dropbox.com/1/oauth2/authorize | |
accessTokenUri: https://api.dropbox.com/1/oauth2/token | |
authorizationGrants: [ authorization_code, refresh_token ] | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment