Skip to content

API Docs

nmonty9 edited this page Mar 31, 2018 · 19 revisions

TODO - UPDATE

Documentation on API's

API Instagram Sever-side (Explicit) Flow

Documentation

https://www.instagram.com/developer/authentication/

Setup

Step 1 GET code

  • GET https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code

Step 2 Receive code via your site

  • http://example.com/?code=CODE

Step 3 Request access token

  • POST https://api.instagram.com/oauth/access_tokenparamsMS
  • client_id= 'CLIENT_ID'
  • client_secret= 'CLIENT_SECRET'
  • grant_type= authorization_code
  • redirect_uri= http://example.com/auth
  • code= response.code
  • Other details
  • Pertinent information for our application

API Twitter 3-legged-oauth

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

API Github Web application flow

Documentation

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

API Example

  • Documentation
  • Setup
  • Other details
  • Pertinent information for our application

TODO: List off steps to get set up on specific social media API/Developer tools to help others on team get easily set up to test / work together on problems

Clone this wiki locally