pCloud Partner Program

Yahoo天氣RSS API需要驗證

程式技術 2016/05/18 15:16
views: 54593 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 manufacturer 2018/01/09 13:38 DELETE

    Subject: clock kit manufacturer

    Get the top new wholesale clock movement kits that are available plus now on sale but you must get it today!
  2. Tracked from clock kit manufacturer 2018/01/10 02:07 DELETE

    Subject: clock kit manufacturer

    Here are the greatest available battery clock movements currently in stock in addition now on sale but you must get it today!

Write a comment


PREV : [1] : ... [35] : [36] : [37] : [38] : [39] : [40] : [41] : [42] : [43] : ... [475] : NEXT



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


 Waiting...