Last active
August 29, 2015 14:23
-
-
Save jerzyn/e5a2ccf74f99efb9036c to your computer and use it in GitHub Desktop.
OAuth2.0 Client Credentails Flow for authentication of our Sentiment API.
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "OAuth for Sentiment API", | |
"description": "OAuth2.0 Client Credentails Flow for authentication of our Sentiment API.", | |
"contact": { | |
"name": "3scale Support Team", | |
"email": "support@3scale.net", | |
"url": "htpps://support.3scale.net" | |
} | |
}, | |
"host": "nginx-oauth.herokuapp.com", | |
"basePath": "/oauth", | |
"schemes": [ | |
"http" | |
], | |
"paths": { | |
"/token": { | |
"post": { | |
"description": "This operation returns the access token for the API. You must call this before calling any other endpoints.", | |
"operationId": "oauth", | |
"parameters": [ | |
{ | |
"name": "client_id", | |
"description": "Your client id", | |
"type": "string", | |
"in": "query", | |
"required": true | |
}, | |
{ | |
"name": "client_secret", | |
"description": "Your client secret", | |
"type": "string", | |
"in": "query", | |
"required": true | |
}, | |
{ | |
"name": "grant_type", | |
"description": "OAuth2 Grant Type", | |
"type": "string", | |
"default": "client_credentials", | |
"required": true, | |
"in": "query", | |
"enum": [ | |
"client_credentials", | |
"authorization_code", | |
"refresh_token", | |
"password" | |
] | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment