Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created June 22, 2015 07:47
Show Gist options
  • Save underscorephil/b3cc73a96ff95e814642 to your computer and use it in GitHub Desktop.
Save underscorephil/b3cc73a96ff95e814642 to your computer and use it in GitHub Desktop.
include('softlayer-api-php-client/SoftLayer/SoapClient.class.php');
$apiUser = '';
$key = '';
$startDate = new DateTime('2015-06-21T08:42:56-06:00');
$accountClient = SoftLayer_SoapClient::getClient('SoftLayer_Ticket', 19899621, $apiUser, $key);
$filter = new stdClass();
$filter->updates = new stdClass();
$filter->updates->createDate = new stdClass();
$filter->updates->createDate->operation = 'greaterThanDate';
$filter->updates->createDate->options = array();
$filter->updates->createDate->options[0] = new stdClass();
$filter->updates->createDate->options[0]->name = 'date';
$filter->updates->createDate->options[0]->value = array($startDate->format('m/d/Y H:i:s'));
$filter->updates->editorType = new stdClass();
$filter->updates->editorType->operation = 'EMPLOYEE';
$accountClient->setObjectFilter($filter);
$updates = $accountClient->getUpdates();
print_r($updates);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment