Skip to content

API Docs

nmonty9 edited this page Apr 9, 2018 · 19 revisions

Table Of Contents

Reddit Api

Documentation

https://github.com/reddit-archive/reddit/wiki/OAuth2

Twitter Api

Documentation

https://developer.twitter.com/en/docs/basics/authentication/overview/3-legged-oauth

Setup

Step 1

  • POST https://api.twitter.com/oauth/request_token
  • Authorization header aka oauth 1.0
  • oauth_callback: http://example.com/auth
  • oauth_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_token
  • oauth_consumer_secret: 'CONSUMER_SECRET'
  • oauth_token_secret: request.oauth_token_secret
  • oauth_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

Twitch Api

Documentation

https://dev.twitch.tv/docs/authentication/#oauth-authorization-code-flow-user-access-tokens

Github Api

Documentation

https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/

Clone this wiki locally