Skip to content

Instantly share code, notes, and snippets.

@anils123
Forked from underscorephil/servers_billing_info.php
Created February 28, 2014 02:59
Show Gist options
  • Select an option

  • Save anils123/9264323 to your computer and use it in GitHub Desktop.

Select an option

Save anils123/9264323 to your computer and use it in GitHub Desktop.
<?php
include('softlayer-api-php-client/SoftLayer/SoapClient.class.php');
$apiUsername = '';
$apiKey = '';
$accountClient = SoftLayer_SoapClient::getClient('SoftLayer_Account', null, $apiUsername, $apiKey);
$mask = "mask[billingItem[recurringFee, id, orderItem[description, order[userRecord[id, username], id]]]]";
$accountClient->setObjectMask($mask);
$servers = $accountClient->getHardware();
print_r($servers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment