Getting Status on Yahoo or AIM (and maybe others)

webguru's Avatar

webguru

06 Oct, 2009 06:06 AM via web

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";
}
  1. 2 Posted by mlucas on 18 Oct, 2010 04:32 PM

    mlucas's Avatar

    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

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.