Skip to content

Instantly share code, notes, and snippets.

@tommaitland
Created January 20, 2016 00:00
Show Gist options
  • Save tommaitland/05f4b882219addde19b2 to your computer and use it in GitHub Desktop.
Save tommaitland/05f4b882219addde19b2 to your computer and use it in GitHub Desktop.
NationBuilder Access Token

Get the access code

https://{SLUG}.nationbuilder.com/oauth/authorize?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT}

Get access token

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --data '{"grant_type":"authorization_code", "client_id":"{CLIENT_ID}", "client_secret":"{CLIENT_SECRET}", "redirect_uri":"{REDIRECT}", "code":"{CODE}"}' https://{SLUG}.nationbuilder.com/oauth/token

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