How to check if a yahoo user exits using php
by Gabi SolomonOn a recent project i had to find a way to test if a yahoo user account entered by the user is real or not. The purpose of this was to not create unnecessary load on the server for an id that wasn't real. So i went to the yahoo registration form and looked on how do they check it.
In that form the access this address if i test my id :
https://edit.yahoo.com/reg_json?PartnerName=yahoo_default&AccountID=[email protected]&ApiName=ValidateFields
There were a few other get parameters but i strip them out, since they didnt seem to add any more value, and the result was the same. If the account you entered ( [email protected] in this case ) is a valid one the result will be :
-
{
-
"ResultCode":"PERMANENT_FAILURE",
-
"SuggestedDBIDList":["[email protected]","[email protected]"],
-
"ErrorList":[{"ErrorCode":"100000","ErrorField":"AccountID"}]
-
}
As you see the result already has the recomandation into it. If you try to run the same request for an id that doenst exist like solomongaby12382109 you would get this result:
-
{"ResultCode":"SUCCESS"}
Based on this i wrote a small php function :
-
$check = file_get_contents('https://edit.yahoo.com/reg_json?PartnerName=yahoo_default&AccountID='.$this->id_name.'@yahoo.com&ApiName=ValidateFields');
-
else return false;
Hope this has helped you.
Cheers
Related Posts
-
Mihai
-
Aandrr
-
http://revealip.net/ Reveal IP
-
Ulrig
-
Ulrig
-
Ulrig
-
http://www.yahooscan.eu Xpl0si0n
-
Sonic
-
http://www.buzzu.info Buzzu
-
Keshav Kuruva
-
http://tes-design.com Tesfalem
-
http://tes-desugn.com tesfalem
-
Norman
-
ismail
-
swetha
-
http://www.hybridsolution.eu/ Cristian
-
http://www.byeloo.com/ detect
-
lelooman
-
Cin
-
http://profiles.yahoo.com/u/PMOSASRXC7WFE6FIHMONUX336I Marius Olteanu
-
http://www.faceboo.im/ Aurelian
-
http://ytilis.com/ Cin
-
http://pulse.yahoo.com/_OJD4JWDQ4SYMH6NKTMBOAYFJZ4 JeffT
-
gec
-
Lol

