Skip to content

Instantly share code, notes, and snippets.

@mitani

mitani/CURL.sh Secret

Last active August 29, 2015 13:56
Show Gist options
  • Save mitani/0dc7246ca694ba4ac280 to your computer and use it in GitHub Desktop.
Save mitani/0dc7246ca694ba4ac280 to your computer and use it in GitHub Desktop.
Login/Authenticate
curl -X POST -H Cache-Control:no-cache -H Postman-Token:a6ae8f76-442f-06cf-1072-db18b0ad29a3 -d '{ "grant_type":"password", "client_id":"sugar", "client_secret":"", "username":"username", "password":"password", "platform":"base" }' http://server/pro720/rest/v10/oauth2/token
POST /pro720/rest/v10/oauth2/token HTTP/1.1
Host: Server
Cache-Control: no-cache
Postman-Token: 83a606e1-26f6-ff21-dd5d-f25f6cb735eb
{ "grant_type":"password", "client_id":"sugar", "client_secret":"", "username":"username", "password":"password", "platform":"base" }
{
"access_token": "5ee48ec7-023e-ecff-5184-530bd0358868",
"expires_in": 3600,
"token_type": "bearer",
"scope": null,
"refresh_token": "5f197357-0167-f7a6-7912-530bd03275b6",
"refresh_expires_in": 1209600,
"download_token": "5f531625-e301-e3ea-1b11-530bd098be41"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment