Created
September 10, 2012 20:00
-
-
Save underscorephil/3693460 to your computer and use it in GitHub Desktop.
Retrieve Transcode FTP Credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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