PHP Classes
elePHPant
Icontem

Accessing Yahoo Weather API

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Accessing Yahoo Weather API  >  (Un) Subscribe thread alerts  
Subject:Accessing Yahoo Weather API
Summary:Yahoo Return URL not Accepted
Messages:4
Author:Wayne Franklin
Date:2019-01-08 13:40:28
 

  1. Accessing Yahoo Weather API   Reply   Report abuse  
Wayne Franklin - 2019-01-08 13:40:28
Yahoo did away with their old api for weather as of Jan 03, 2019.

They offer an API that requires OAuth logins.

Here is the URL at Yahoo for creating the App ID, Client ID and Secret.

developer.yahoo.com/apps/create/?gu ...

When I try to put in a Return URL, it gives me an error creating the keys.

First error states you cannot use the name 'Yahoo' in the return URL path. So i changed it to the word 'weather'.

This is the error I get. Any Ideas???

Application Create failed. Scopes creation failed when creating App: 507 - {"domain_name":{"errors":[{"code":2402,"message":"Invalid domain name: swfsa.org\/login_with_weather.php"}]}}



  2. Re: Accessing Yahoo Weather API   Reply   Report abuse  
Wayne Franklin - 2019-01-08 15:14:10 - In reply to message 1 from Wayne Franklin
As you can see, I am NEW to APIs

This is what Yahoo wants in order to connect to the weather API.

GET /forecastrss?w=2502265 HTTP/1.1
Host: weather-ydn-yql.media.yahoo.com
Authorization: OAuth
oauth_consumer_key="YOUR_CONSUMER_KEY",oauth_signature_method="HMAC-SHA1",oauth_timestamp="YOUR_TIMESTAMP",oauth_nonce="YOUR_NONCE",oauth_version="1.0",oauth_signature="YOUR_GENERATED_SIGNATURE"
cache-control: no-cache

Not sure how to edit Login_With_Yahoo.php to make this all work.

I have all the IDs and a Call back domain activated in Yahoo.

Any ideas?

Thanks

  3. Re: Accessing Yahoo Weather API   Reply   Report abuse  
Wayne Franklin - 2019-01-08 16:27:57 - In reply to message 1 from Wayne Franklin
The Current Login_With_Yahoo uses a call that is now obsoleted by yahoo.

Here is the info from Yahoo:
Important EOL Notice: As of Thursday, Jan. 3, 2019, the weather.yahooapis.com and query.yahooapis.com for Yahoo Weather API will be retired.
To continue using our free Yahoo Weather APIs, use https://weather-ydn-yql.media.yahoo.com/forecastrss. Contact yahoo-weather-ydn-api@oath.com for credentials to onboard to this free Yahoo Weather API service.

Hope this helps,

Thanks

  4. Re: Accessing Yahoo Weather API   Reply   Report abuse  
Manuel Lemos - 2019-01-09 03:00:57 - In reply to message 3 from Wayne Franklin
Thanks Wayne.

Right now I do not have the time to take a look into this. Would you be willing to change the example and the Yahoo configuration settings and contribute those changes so I can make them available to all that need to deal with Yahoo integration?