Skip to content

Instantly share code, notes, and snippets.

@paulferrett
Created September 26, 2013 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulferrett/6717369 to your computer and use it in GitHub Desktop.
Save paulferrett/6717369 to your computer and use it in GitHub Desktop.
Simple example for using the Service Central PHP client.
<?php
define('ISM_API_KEY', "your client key");
define('ISM_API_SECRET', "your client secret");
define('ISM_API_TOKEN', "user/client token");
$client = new ISM_Client(ISM_API_KEY, ISM_API_SECRET);
$client->setToken(ISM_API_TOKEN);
$jobs = $client->apis->jobs()->getJobs();
foreach($jobs as $job) {
echo $job->summary . '<br />';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment