Search code examples
urloauthrequestyqlyahoo-api

Making Yahoo Weather API request with OAuth 1


I ran into a problem with Yahoo Weather API because it wasn't giving me any data. After visiting YDN website I've found out that all requests should be updated to OAuth 1 starting from March 15th (but I got working it just today!). It's also said to include Yahoo App key and secret. What the request url should look like now, when I must use my app key and secret?

Before, I got such request string: https://query.yahooapis.com/v1/public/yql?q=SOME_QUERY&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=

UPDATE

13 minutes after I originally asked this question API calls with /v1/public/ endpoint are working again. But it's still interesting for me to get an answer to my question.

UPDATE

It's down again :(


Solution

  • If you simply replace

    http://weather.yahooapis.com/

    with

    http://xml.weather.yahoo.com/

    it should work ;)