Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save underscorephil/4539720 to your computer and use it in GitHub Desktop.
Save underscorephil/4539720 to your computer and use it in GitHub Desktop.
<?php
include('softlayer-api-php-client/SoftLayer/SoapClient.class.php');
$apiUser = '';
$apiKey = '';
$serverId = ;
$serverClient = SoftLayer_SoapClient::getClient('SoftLayer_Hardware_Server', $serverId, $apiUser, $apiKey);
try {
$result = $serverClient->captureImage();
print_r($result);
} catch (Exception $e) {
print $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment