Yahoo Addressbook API returning Error 302

Is there some kind of service issue with the Yahoo Address book API right now? I am trying to implement Addressbook API integration in the php webapp I'm working on but Yahoo keeps returning this 302 error.

I'm using the ybrowserauth.class.php5 file provided by Yahoo and calling makeAuthWSgetCall to the URL:


What I receive back is:

<HEAD><TITLE>302 Moved Temporarily</TITLE></HEAD>
<H1>Moved Temporarily<H1>
You are being redirected to a new location because:<P>
[code=BYPASSED_URL] The client request was forwarded directly to the origin server. No action is required.

Checking the HTML headers reveals that the Redirect is sending me to the same address I called makeAuthWSgetCall with.

What is going on?

Is Yahoo broken?

3 Replies
  • Adam,

    We are not aware of anything here that would be causing this but I'll get your message to the Address Book team. We did have one other developer mention this yesterday, so it seems to be affecting few people, but that's still too many!

    Robyn Tippins
    Community Manager, YDN
  • I found a simple fix for this issue.

    In the ybrowserauth.class.php5 file add the following lines below line 316:

    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_MAXREDIRS, 10);

    This causes curl to follow the 302 location and retrieve the addressbook entries.
  • For use dumb users how is this done?

    I have been unable to email anyone with a yahoo email for over a week now.

    Alma Jo
  • Alma Jo,

    Please visit help.yahoo.com and click on Mail. Customer Service agents should be able to help you.

    Robyn Tippins
    Community Manager, YDN

Recent Posts

in Contacts