Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created July 8, 2013 14:41
Show Gist options
  • Save underscorephil/5949417 to your computer and use it in GitHub Desktop.
Save underscorephil/5949417 to your computer and use it in GitHub Desktop.
<?php
include('softlayer-api-php-client/SoftLayer/SoapClient.class.php');
$apiUser = '';
$key = '';
$accountClient = SoftLayer_SoapClient::getClient('SoftLayer_Account', Null, $apiUser, $key);
$objectMask = "mask[id, hostname, domain, datacenter.longName, billingItem.recurringFee]";
$accountClient->setObjectMask($objectMask);
$hardware = $accountClient->getHardware();
print_r($hardware);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment