PHP Classes

Yahoo response

Recommend this page to a friend!

      Yahoo Status Checker  >  All threads  >  Yahoo response  >  (Un) Subscribe thread alerts  
Subject:Yahoo response
Summary:Confusing response codes
Messages:4
Author:johno dread
Date:2009-06-20 20:41:45
Update:2009-06-21 08:22:06
 

  1. Yahoo response   Reply   Report abuse  
Picture of johno dread 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;
}

  2. Re: Yahoo response   Reply   Report abuse  
Picture of Davood Jafari Davood Jafari - 2009-06-20 21:13:27 - In reply to message 1 from johno dread
Hi
Yahoo Server Can Not View Other Status Such As Busy Or On The Phone Or ...
So, This Code Is Correct, And Your Server Address Status Is My Server Status .

[ Sorry For My Bad English ]

  3. Re: Yahoo response   Reply   Report abuse  
Picture of johno dread johno dread - 2009-06-20 23:48:22 - In reply to message 2 from Davood Jafari
Davood,

The code is not incorect but the interpretation of the response codes could be avoided. For example:

1. You change the query string such that t=2, and pass in a userid such that the url becomes:
http://opi.yahoo.com/online?u=splashyy&m=t&t=2

Yahoo respond with a string like; "splashyy is NOT ONLINE".

If the response is as clear as this then the code could be modified a bit to display this response string.

2. If you are online on Yahoo and you run this code with your yahoo id the response code is not the same as if you run this same code with the Yahoo id of one of your contacts that are also online.





  4. Re: Yahoo response   Reply   Report abuse  
Picture of Davood Jafari Davood Jafari - 2009-06-21 08:22:06 - In reply to message 3 from johno dread
Dear friend
You speak is true.
But I would like a user to be able to if the result will be to show.
Because the same result as a number to get the user to be able to do everything that has to do with it.

[ Translate By Google.Com ]