User Object(ユーザーオブジェクト)の説明
公開日:
ユーザーオブジェクトは、ユーザーのプロフィールや設定に関する情報を含むオブジェクトです。
JSONの例
ユーザーオブジェクトの例です。
JSON
{"id":1528352858,"id_str":"1528352858","name":"\u3042\u3089\u3086","screen_name":"arayutw","location":"\u65e5\u672c \u6771\u4eac","profile_location":{"id":"a56612250c754f23","url":"https:\/\/api.twitter.com\/1.1\/geo\/id\/a56612250c754f23.json","place_type":"unknown","name":"\u65e5\u672c \u6771\u4eac","full_name":"\u65e5\u672c \u6771\u4eac","country_code":"","country":"","contained_within":[],"bounding_box":null,"attributes":{}},"description":"SYNCER\u3068\u3044\u3046\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u63b2\u793a\u677f\u2192 https:\/\/t.co\/OAIDbACF3N","url":"https:\/\/t.co\/lW3GYq8sQl","entities":{"url":{"urls":[{"url":"https:\/\/t.co\/lW3GYq8sQl","expanded_url":"https:\/\/syncer.jp\/","display_url":"syncer.jp","indices":[0,23]}]},"description":{"urls":[{"url":"https:\/\/t.co\/OAIDbACF3N","expanded_url":"https:\/\/forum.syncer.jp\/","display_url":"forum.syncer.jp","indices":[26,49]}]}},"protected":false,"followers_count":1422,"friends_count":565,"listed_count":113,"created_at":"Tue Jun 18 17:28:51 +0000 2013","favourites_count":4462,"utc_offset":32400,"time_zone":"Asia\/Tokyo","geo_enabled":true,"verified":false,"statuses_count":35283,"lang":"ja","status":{"created_at":"Sun Jan 29 03:25:32 +0000 2017","id":825545384051093507,"id_str":"825545384051093507","text":"\u74b0\u5883 \u6574\u3063\u305f\u304b\u3089\u5927\u91cf\u6295\u7a3f\u3044\u3051\u305d\u3046\ud83d\ude00\n\nTwitter Rest API\u3067\u52d5\u753b\u4ed8\u304d\u30c4\u30a4\u30fc\u30c8\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\nhttps:\/\/t.co\/peL2xAXfNW\n\n\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3053\u3061\u3089\u3078\u3069\u3046\u305e (\u8981\u6c4e\u7528\u6027)\u2192 \nhttps:\/\/t.co\/SBB5bbBQU3","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[{"url":"https:\/\/t.co\/peL2xAXfNW","expanded_url":"https:\/\/syncer.jp\/Web\/API\/Twitter\/Snippet\/2\/","display_url":"syncer.jp\/Web\/API\/Twitte\u2026","indices":[52,75]},{"url":"https:\/\/t.co\/SBB5bbBQU3","expanded_url":"https:\/\/forum.syncer.jp\/t\/twitter-rest-api\/58","display_url":"forum.syncer.jp\/t\/twitter-rest\u2026","indices":[100,123]}]},"source":"\u003ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003eTwitter Web Client\u003c\/a\u003e","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,"is_quote_status":false,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"ja"},"contributors_enabled":false,"is_translator":false,"is_translation_enabled":true,"profile_background_color":"2660A1","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/821911941396328448\/VjorK4J1.jpg","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/821911941396328448\/VjorK4J1.jpg","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/821941553774010370\/5M2umxbl_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/821941553774010370\/5M2umxbl_normal.jpg","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/1528352858\/1484800383","profile_link_color":"D36015","profile_sidebar_border_color":"F2E195","profile_sidebar_fill_color":"FFF7CC","profile_text_color":"0C3E53","profile_use_background_image":true,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false,"translator_type":"regular","suspended":false,"needs_phone_verification":false}
プロパティの説明
ユーザーオブジェクトに含まれる各プロパティの説明です。
- contributors_enabled
- 型: Boolean
- このアカウントが共用アカウントか否か。TweetDeckではアカウントを複数ユーザーで共用できるチームの機能がある。
true
なら共用アカウント。 - created_at
- 型: String
- アカウントの作成日時。
- default_profile
- 型: Boolean
- アカウントを登録してから、プロフィールを設定していないままの状態か。
true
なら、まだ設定していない状態。 - default_profile_image
- 型: Boolean
- アカウントを登録してから、アイコン画像を設定していないままの状態か。
true
なら、まだ設定していない状態(タマゴアイコン)。 - description
- 型: String
- プロフィールの詳細文。
- entities
- 型: Object
- プロフィールに含まれるエンティティ。エンティティオブジェクトを参照。
- favourites_count
- 型: Int
- 自分がお気に入りに登録したツイートの数。
- followers_count
- 型: Int
- フォロワーの数。
- following
- 型: Boolean
- アクセストークンの主がこのユーザーをフォローしているか否か。ユーザー認証でJSONを取得した場合に含まれる。
- follow_request_sent
- 型: Boolean
- アクセストークンの主がこのユーザーにフォローリクエストを送信している最中か否か。ユーザー認証でJSONを取得した場合に含まれる。
- friends_count
- 型: Int
- フォローしているユーザーの数。
- geo_enabled
- 型: Boolean
- ツイートに位置情報を追加するのを許可しているか。
- has_extended_profile
- 型: Boolean
- 何のプロパティか不明でした。情報提供をお待ちしております。
- id
- 型: Int
- 数値型のユーザーID。桁数が多い場合、サーバーによっては末尾の数が丸められてしまう。
- id_str
- 型: String
- 文字列型のユーザーID。
- is_translation_enabled
- 型: Boolean
- 何のプロパティか不明でした。情報提供をお待ちしております。
- is_translator
- 型: Boolean
- Twitterの翻訳コミュニティに参加しているか。
true
なら参加している。 - lang
- 型: String
- 言語。
- listed_count
- 型: Int
- 自分がユーザー(発言者)として加えられているリストの数。
- location
- 型: String
- ロケーション。
- name
- 型: String
- 名前。
- needs_phone_verification
- 型: Boolean
- 電話番号の認証が必要な状態か否か。
true
なら必要な状態で、操作が制限されている。 - notifications
- 型: Boolean
- アクセストークンの主がこのユーザーのツイートをモバイル通知するように設定しているか否か。ユーザー認証でJSONを取得した場合に含まれる。
- profile_background_color
- 型: String
- プロフィールの背景色。利用されていない。
- profile_background_image_url
- 型: String
- プロフィールの背景画像ファイルのURLアドレス。利用されていない。
- profile_background_image_url_https
- 型: String
- プロフィールの背景画像ファイルのSSL通信のURLアドレス。利用されていない。
- profile_background_tile
- 型: Boolean
- プロフィールの背景画像を繰り返し表示するか。
true
なら繰り返し表示をする。利用されていない。 - profile_banner_url
- 型: String
- ヘッダー画像ファイルのSSL通信のURLアドレス。
- profile_image_url
- 型: String
- アイコンの画像ファイルのURLアドレス。
- profile_image_url_https
- 型: String
- アイコンの画像ファイルのSSL通信のURLアドレス。
- profile_link_color
- 型: String
- テーマカラー。
- profile_location
- 型: Object
- ロケーションに場所の情報を紐付けている場合、その場所のPlace Objectが含まれる。
- profile_sidebar_border_color
- 型: String
- サイドバーの境界線の色。利用されていない。
- profile_sidebar_fill_color
- 型: String
- サイドバーの塗りつぶしの色。利用されていない。
- profile_text_color
- 型: String
- 文字色。利用されていない。
- profile_use_background_image
- 型: Boolean
- プロフィールの背景画像を有効にするか。
true
なら有効にする。利用されていない。 - protected
- 型: Boolean
- ツイートを非公開にしているか。
true
なら非公開、false
なら公開。 - screen_name
- 型: String
- スクリーンネーム。
- status
- 型: Object
- 最新のツイートを表すTweet Object。
- statuses_count
- 型: Int
- ツイートの合計数。
- suspended
- 型: Boolean
- アカウントが凍結中か否か。
true
なら凍結中。ただし、凍結中のユーザーを取得しようとするとそもそもエラーになるので、このプロパティの意味があるかは不明。 - time_zone
- 型: String
- タイムゾーン。
- translator_type
- 型: String
- 翻訳者のランク。
- url
- 型: String
- ウェブサイト。
- utc_offset
- 型: Int
- このユーザーのタイムゾーンにおける、UTCからのオフセット秒数。
- verified
- 型: Boolean
- 認証アカウントか否か。
true
なら認証アカウントで、ユーザー名の横にチェックマークが付く。