2009-07-14 53 views
0

關於followcost.com的API腳本。對於使用跟隨成本API,後續成本有一個簡單的JSON API。json數據的url問題

發送GET請求使用Twitter的用戶名followcost.com:

GET /lof.json 

,服務器的響應(格式化爲清晰起見):

200 OK 
Content-Type: application/json 

{"milliscobles_all_time":141.93, 
"average_tweets_per_day":3.01034, 
"username":"lof", 
"twitter_created_at":"2008/01/24 11:21:43 -0600", 
"at_reply_index":55.0, 
"milliscobles_recently":147.92, 
"average_tweets_per_day_recently":3.13738, 
"statuses_count":1165, 
"golden_index":3.0, 
    "profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/50450572\/75756154_N00_normal.jpg"} 

但是當我使用的URL www.followcost.com/GET/Anand_Dasgupta.jsonwww.followcost.com/api/GET/Anand_Dasgupta.json它給嘰嘰喳喳用戶不存在錯誤...但我顯然有一個推特ID。

那麼我需要使用什麼網址?

任何幫助將不勝感激。

謝謝

阿南德

+2

GET是HTTP的方法[http://en.wikipedia.org/ wiki/Hypertext_Transfer_Protocol#Request_methods]。但是您使用GET作爲URL的一部分。 URL僅指定要從服務器的文件系統中提取的文件的路徑名,並且包含GET作爲路徑名的一部分將不正確。 – ardsrk 2009-07-14 08:42:36

回答