ユーザーが名前を入力し、それぞれのプロファイルデータがTwitterから受信される、C#でアプリを作成しています。今のところAPIは使用していません。私が使用する場合:
https://api.twitter.com/1/users/show.json?screen_name=kool_aid_wino
応答はこのようなJSONメッセージです。
{"id":184937673,"id_str":"184937673","name":"Brautigan's Ghost","screen_name":"Kool_Aid_Wino","location":"","description":"Author Richard Brautigan floating through time. Fan Account.","url":null,"protected":false,"followers_count":1803,"friends_count":623,"listed_count":97,"created_at":"Mon Aug 30 21:21:12 +0000 2010","favourites_count":0,"utc_offset":-18000,"time_zone":"Quito","geo_enabled":false,"verified":false,"statuses_count":653,"lang":"en","status":{"created_at":"Fri Jun 15 00:47:15 +0000 2012","id":213432448762134528,"id_str":"213432448762134528","text":"I sat beside my little brother on the front porch, and I told him a story about a flower that fell in love with a star.","source":"\u003ca href=\"http:\/\/twitterrific.com\" rel=\"nofollow\"\u003eTwitterrific\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":11,"favorited":false,"retweeted":false},"contributors_enabled":false,"is_translator":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/a0.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_image_url_https":"https:\/\/si0.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_tile":false,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1114076851\/Brautigan_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1114076851\/Brautigan_normal.jpg","profile_link_color":"0084B4","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"show_all_inline_media":false,"default_profile":true,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null}
私が頭に浮かぶ質問はほとんどありません。
- JSONメッセージを処理するためにC#でJSONパーサーが必要ですか?
- このJSONメッセージには、プロモートされたツイートに関する情報が含まれていません。どうすれば取得できますか?