Created
June 22, 2015 07:47
-
-
Save underscorephil/b3cc73a96ff95e814642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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