function shrinktheweb_getAccountInfo in ShrinkTheWeb 6
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_getAccountInfo()
- 7 shrinktheweb.api.inc \shrinktheweb_getAccountInfo()
Get Account Info and return it as array
1 call to shrinktheweb_getAccountInfo()
File
- ./
shrinktheweb.api.inc, line 628
Code
function shrinktheweb_getAccountInfo() {
$aArgs['stwaccesskeyid'] = ACCESS_KEY;
$aArgs['stwu'] = SECRET_KEY;
$sRequestUrl = 'http://images.shrinktheweb.com/account.php';
$sRemoteData = shrinktheweb_fileGetContent($sRequestUrl, $aArgs);
// check if we get no response or the maintenance string
if ($sRemoteData == '' || $sRemoteData == 'offline') {
$aImage = array(
'stw_status' => 'no_response',
);
if ($sRemoteData != '') {
$aImage['message'] = MAINTENANCE;
}
}
else {
$aResponse = shrinktheweb_getAccXMLResponse($sRemoteData);
}
return $aResponse;
}