Get a list of your jobs.

📘

Make sure to take note of the directional indicators for sorting. We use 1 for ASC and -1 for DESC.

{
  "filters":{
  	"status": "Complete"
  },
  "sort":{
    "events.created": -1
  },
  "page": 1,
  "limit": 50
}
require './lib/SkyEncoder.php';
$sky = new SkyEncoder('your-secret-key', 'your-api-token');

$resp = $sky->getJobs(array(
	'filters' => array('status'=>'Complete'),
	'sort' => array('events.created'=>-1),
	'page' => 1,
	'limit' => 50
));
Language