Skip to content

Instantly share code, notes, and snippets.

@mayaeh
Created December 25, 2018 09:33
Show Gist options
  • Save mayaeh/92a803d819e6d6d802c8dd6e941351b4 to your computer and use it in GitHub Desktop.
Save mayaeh/92a803d819e6d6d802c8dd6e941351b4 to your computer and use it in GitHub Desktop.
curl -X POST -sS https://example.com/api/v1/apps -F "client_name=api-sign-up_test" -F "redirect_uris=urn:ietf:wg:oauth:2.0:oob" -F "scopes=read write follow"
curl -X POST -sS https://example.com/oauth/token -d "scope=write read follow&client_id=xxxxx&client_secret=xxxxx&grant_type=client_credentials"
curl -X POST --header "Authorization: Bearer xxxxx” -sS https://example.com/api/v1/accounts -d "username=foo&email=foo@example.com&password=xxxxx&agreement=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment