-
Notifications
You must be signed in to change notification settings - Fork 0
API Docs
nmonty9 edited this page Apr 9, 2018
·
19 revisions
https://github.com/reddit-archive/reddit/wiki/OAuth2
https://developer.twitter.com/en/docs/basics/authentication/overview/3-legged-oauth
Step 1
POST https://api.twitter.com/oauth/request_token- Authorization header aka oauth 1.0
oauth_callback: http://example.com/authoauth_consumer_key: 'CONSUMER_KEY'oauth_consumer_secret: 'CONSUMER_SECRET'
Step 2 Verify Token and receive secret token
POST https://api.twitter.com/oauth/authenticate- Authorization header
oauth_consumer_secret: 'CONSUMER_KEY'oauth_token: response.oauth_tokenoauth_consumer_secret: 'CONSUMER_SECRET'oauth_token_secret: request.oauth_token_secretoauth_verifier: response.oauth_verifier
Step 3 Authenticate tokens and receive user data
-
POST https://api.twitter.com/oauth/access_token -
Authorization header
-
oauth_consumer_key: 'CONSUMER_KEY' -
oauth_consumer_secret: 'CONSUMER_SECRET' -
oauth_token: response.oauth_token -
oauth_secret: response.oauth_secret -
The last response from twitter will include users information
https://dev.twitch.tv/docs/authentication/#oauth-authorization-code-flow-user-access-tokens
https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/