
johno dread - 2009-06-20 20:41:45
I realised that the responses from the Y! server used in this class seem to ignore all other status of the user, such as Busy, or On the phone.
Also the response codes are a bit confusing. For example if you were on line the response code is different from any of your contacts who are also online.
This class might be more useful then if we avoid transforming the response codes. Instead change the query string to:
"http://opi.yahoo.com/online?u=".urlencode( $this->YahooID )."&m=t&t=2";
The response says exactly what the user's status is.
Your function should be:
function GetResult()
{
$CheckURL = "http://opi.yahoo.com/online?u=".urlencode($this->YahooID )."&m=t&t=2";
$Response = @file_get_contents( $CheckURL );
return $Response;
}