Skip to content

Instantly share code, notes, and snippets.

@gphilipp
Created July 22, 2016 07:26
Show Gist options
  • Select an option

  • Save gphilipp/a8d8e48190e8eaf593ecc40b634753f9 to your computer and use it in GitHub Desktop.

Select an option

Save gphilipp/a8d8e48190e8eaf593ecc40b634753f9 to your computer and use it in GitHub Desktop.
http://coop.apps.knpuniversity.com/token
?client_id=Your+Client+Name
&client_secret=abcdefg
&grant_type=client_credentials
$request = $http->post('/token', null, array(
'client_id' => 'Brent\'s Lazy CRON Job',
'client_secret' => 'a2e7f02def711095f83f2fb04ecbc0d3',
'grant_type' => 'client_credentials',
));
{
"access_token": "fa3b4e29d8df9900816547b8e53f87034893d84c",
"expires_in": 86400,
"token_type": "Bearer",
"scope": "chickens-feed"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment