pCloud Partner Program

Yahoo天氣RSS API需要驗證

程式技術 2016/05/18 15:16
views: 52237 times
之前的一個使用天氣 API 的專案, 因為 Yahoo RSS API 需要驗證, 變成非公開性的 API, 例如:

http://weather.yahooapis.com/forecastrss?u=c&w=2306179

目前會回覆:
Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"

而無法順利取得內容, 經查找相關資料, 應該是 3/15 起, yahoo 這組 API 需要做驗證才能使用, 於是找了資料, 可以改用 YQL 的方式來查詢, 相容的查詢指令如下:

http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20%20u=%22c%22%20and%20woeid%20=2306179

其中的 YQL 為:

select * from weather.forecast where u="c" and woeid=2306179

即可獲得相容的天氣 API 回傳結果.

參考之前文章:
http://diary.tw/tim/1007

top
TAG , , ,

Trackback Address :: http://diary.tw/tim/trackback/1148

  1. Tracked from Clock kit suppliers 2017/11/16 23:22 DELETE

    Subject: Clock kit suppliers

    See the highest quality available clock kits that are in stock plus currently on sale but you must get it today!
  2. Tracked from commercial building contractor 2017/11/18 14:45 DELETE

    Subject: commercial building contractor

    Click here for top Construction Management currently available now in addition at the best price today!
  3. Tracked from clock building kit 2017/11/19 10:38 DELETE

    Subject: clock building kit

    See the greatest option for replacement parts for battery operated clocks now available plus now on sale but you must get it today!

Write a comment


PREV : [1] : ... [32] : [33] : [34] : [35] : [36] : [37] : [38] : [39] : [40] : ... [472] : NEXT



Nextbit Robin 5.2吋六核心智慧型手機 Microsoft Office 365 中文家用版PKC (無光碟)
ASUS華碩 AC1900 雙頻無線路由器 RT-AC68U 美國 VORNADO 533 渦流空氣循環機 (黑色)
御茶園 每朝健康綠茶(650mlx24入) 每朝健康 雙纖綠茶(650mlx24入)


 Waiting...