我知道用戶在Twitter上的名字。如何使用Twitter的寶石獲取用戶的國家?Twitter的寶石 - 如何獲取用戶的國家?
1
A
回答
2
0
用戶對象持有
"user":{"statuses_count":3080, "favourites_count":22, "protected":false,
"profile_text_color":"437792", "profile_image_url":"...", "name":"Twitter API",
"profile_sidebar_fill_color":"a9d9f1", "listed_count":9252, "following":true,
"profile_background_tile":false, "utc_offset":-28800, "description":"The Real Twitter API.
I tweet about API changes, service issues and happily answer questions about Twitter and
our API. Don't get an answer? It's on my website.", "location":"San Francisco, CA",
"contributors_enabled":true, "verified":true, "profile_link_color":"0094C2",
"followers_count":665829, "url":"http:\/\/dev.twitter.com", "default_profile":false,
"profile_sidebar_border_color":"0094C2", "screen_name":"twitterapi",
"default_profile_image":false, "notifications":false, "display_url":null,
"show_all_inline_media":false, "geo_enabled":true, "profile_use_background_image":true,
"friends_count":32, "id_str":"6253282", "entities":{"hashtags":[], "urls":[],
"user_mentions":[]}, "expanded_url":null, "is_translator":false, "lang":"en",
"time_zone":"Pacific Time (US & Canada)", "created_at":"Wed May 23 06:01:13 +0000
2007", "profile_background_color":"e8f2f7", "id":6253282, "follow_request_sent":false,
"profile_background_image_url_https":"...", "profile_background_image_url":"...",
"profile_image_url_https":"..."}
它也可以通過座標對象確定國家信息 - 如果你願意使用地圖服務,試圖確定其中經緯線放置鳴叫的條款的國家,或者你可以劃定一個國家的角落試圖獲得一個總體想法。例如,你可以使用
北端西北角,明尼蘇達州(49°23'4.1" N)
最南端鎮流器關鍵,佛羅里達(24°31'15「N)
東端賽歐巖,近海西Quoddy頭,緬因州 (66°57' W)
西端點從海角阿拉瓦, 華盛頓(124°46' Bodelteh羣島近海W)
爲連續48個美國各州既是地方對象和用戶的位置對象經常空還是在實踐中沒有規定:
"coordinates":
{
"coordinates":
[
-75.14310264,
40.05701649
],
"type":"Point"
}
由地方
或最後對象
"place":
{
"attributes":{},
"bounding_box":
{
"coordinates":
[[
[-77.119759,38.791645],
[-76.909393,38.791645],
[-76.909393,38.995548],
[-77.119759,38.995548]
]],
"type":"Polygon"
},
"country":"United States",
"country_code":"US",
"full_name":"Washington, DC",
"id":"01fbe706f872cb32",
"name":"Washington",
"place_type":"city",
"url": "http://api.twitter.com/1/geo/id/01fbe706f872cb32.json"
}
相關問題
- 1. 如何使用國家寶石
- 2. 獲取用戶的國家
- 3. 如何獲取用戶位置國家
- 4. 翻譯來自國家寶石國家的數組中的Rails
- 5. 如何從家鄉ID獲取用戶的國家?
- 6. 地區的寶石到國家:紅寶石
- 7. Twitter的紅寶石寶石
- 8. 獲取用戶的國家代碼
- 9. 使用Twitter寶石獲取通知
- 10. 使用Twitter寶石獲取tweet對象
- 11. 獲取國家頂級Twitter趨勢
- 12. 在Android中獲取國家的國家
- 13. 通過其全名美國國家的簡稱(寶石國家和country_select)
- 14. rails 3 mongoid和國家寶石
- 15. Rails 5 - 國家寶石 - 旗幟
- 16. 寶石國家選擇幫手
- 17. Twitter寶石 - 如何獲取新推文的ID?
- 18. Twitter寶石 - 如何獲取推文的緯度和經度?
- 19. 獲取Facebook用戶國家可能?
- 20. Moodle php獲取當前用戶國家
- 21. 從Facebook獲取用戶國家
- 22. 如何獲取用戶的國家和轉發到URL?
- 23. 如何根據iTunes設置獲取用戶的國家?
- 24. 如何獲取用戶的國家信息
- 25. Rails的 - 獲取用戶的國家註冊時使用設計和地理編碼寶石
- 26. 從Twitter寶石
- 27. 的Twitter:Twitter4j用戶的國家
- 28. 我如何獲得寶石的寶石?
- 29. 如何使用PHP中的國家代碼獲取國家最大的城市?
- 30. 如何獲取是紅寶石寶石的代碼?