Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created December 9, 2013 23:24
Show Gist options
  • Save underscorephil/7882974 to your computer and use it in GitHub Desktop.
Save underscorephil/7882974 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);
@anils123
Copy link

Hi Phil, after conversion to python can you please provide the code. I tried in python and could not get any results

@underscorephil
Copy link
Author

@anils123: Apologies! Just saw this comment. I'll get a python example worked up for you.

@underscorephil
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment