Getting Status on Yahoo or AIM (and maybe others)
I am getting "Unknown" for the status on Yahoo and AIM consistently (even though it is my personal account and I know it is online).
Is anyone else not getting a status on AIM or Yahoo?
Here is my PHP code that retrieves the status; please fix the status if you can.... what is actually returning is an empty tag of < status >< /status >:
$url = 'https://www.imified.com/api/bot/';
$data = array(
'botkey' => 'MY BOT KEY IS SUPPRESSED',
'apimethod' => 'getuser',
'userkey' => $userkey
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERPWD, '***@the-joys.com:cej5905');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
$xml = curl_exec($ch);
curl_close($ch);
$pos1 = stripos($xml, "<status>");
$pos2 = stripos($xml, "</status>");
$output = substr($xml,$pos1+8,($pos2-$pos1)-8);
if ((($pos2-$pos1)-8) > 0) {
return ucfirst($output);
} else {
return "Unknown";
}
2 Posted by mlucas on 18 Oct, 2010 04:32 PM
Sorry for the late response regarding your issue. Is this still an issue that you are currently experiencing? I will be monitoring this page for a reply and I look forward to helping resolve this for you.
-Matt Lucas
IMified Support