Server returned HTTP response code: 403 for URL: http://address.yahooapis.com/v1/searchContacts?format=xml&appid=JnR5h4LIkYmvVcPmA2xPj_1XK.hGV.nxdhPS&WSSID=4083Sovmu5v
My code is equals to YahooBBAuthServer, with modifications for extract the contactlist:
... ... /** * Generate the portion of the URL that's used for signing. * More information on BBAuth can be found here: <a href="http://developer.yahoo.com/auth/" target="_blank">http://developer.yahoo.com/auth/</a> */ String authWS = "/WSLogin/V1/wspwtoken_login"; String sig = authWS + "?appid=" + URLEncoder.encode(appId, "UTF-8") + "&token=" + URLEncoder.encode(token, "UTF-8") + "&ts=" + time + secret; String signature = new BigInteger(1, digest.digest((sig).getBytes())).toString(16); String authURL = "https://api.login.yahoo.com" + authWS + "?appid=" + appId + "&token=" + token + "&ts=" + time + "&sig=" + signature; //out.println(authURL); //out.println(" ");
InputStream rstream = (new URL(authURL)).openStream();
/** * Retrieve the XML response to the auth request and get the wssid and * cookie values. */ Document xmlresponse = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(rstream);
The bug is still in process, but I'll keep you updated as soon as status changes. Unfortunately we don't have a public facing bug reporting option, though it's on our radar.