Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created September 10, 2012 20:00
Show Gist options
  • Save underscorephil/3693460 to your computer and use it in GitHub Desktop.
Save underscorephil/3693460 to your computer and use it in GitHub Desktop.
Retrieve Transcode FTP Credentials
function _getFtpCredentials() {
$accountClient = SoftLayer_SoapClient::getClient('SoftLayer_Account', null, API_USER, API_KEY);
$transcodeAccount = array_shift($accountClient->getTranscodeAccounts());
$transcodeAccountClient = SoftLayer_SoapClient::getClient('SoftLayer_Network_Media_Transcode_Account', $transcodeAccount->id, API_USER, API_KEY);
return($transcodeAccountClient->getFtpAttributes());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment