2012-03-15 68 views
-8

最近我寫了一個程序來搜索雅虎與給定的字符串。在雅虎使用java搜索

我傳遞給我的程序的字符串是 http://api.search.yahoo.com/WebSearchService/V1/webSearch?site="+URLEncoder.encode(sitename)+"&appid=YahooDemo&query="+URLEncoder.encode(query)+"&results=20&start="+pagec+"&output=json

參數:

  • sitename用於獲取結果,要在雅虎服務器中搜索一個特定的網站
  • query字符串。

但我發現了以下錯誤,當我執行這個程序:

{ 
    "Error": { 
     "Message": ["The service has been shut down. For further details, please see the Deprecated Services blog post http://developer.yahoo.com/blogs/ydn/posts/2010/08/api_updates_and_changes"], 
     "Title": "The following errors were detected:" 
    } 
} 

什麼是收到此錯誤的原因是什麼?

+7

也許問題是服務已關閉? – 2012-03-15 08:48:12

+0

感謝您的replay.so,我該如何解決這個問題..? – mani 2012-03-15 08:51:25

+0

[閱讀這篇文章](http://developer.yahoo.com/blogs/ydn/posts/2010/08/api_updates_and_changes) – oers 2012-03-15 08:53:04

回答

0

好像你沒問題,他們只是關閉了服務。你讀過他們寄給你的blog entry嗎?