Skip to content

Instantly share code, notes, and snippets.

@supernoveau
Created April 5, 2017 00:44
Show Gist options
  • Save supernoveau/3accac41e2fcace00f9a38a288c6d6b0 to your computer and use it in GitHub Desktop.
Save supernoveau/3accac41e2fcace00f9a38a288c6d6b0 to your computer and use it in GitHub Desktop.

Instagram API

Authorise to obtain authorisation code

https://api.instagram.com/oauth/authorize/?client_id=[client_id]&redirect_uri=[redirect_uri]&response_type=code&scope=[basic+likes+relationships]

Obtain access token via cURL

curl -F 'client_id=[client_id]' -F 'client_secret=[client_secret]' -F 'grant_type=authorization_code' -F 'redirect_uri=[redirect_uri]' -F 'code=[authorisation_code]' https://api.instagram.com/oauth/access_token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment