Skip to content

Instantly share code, notes, and snippets.

@takke
Last active September 28, 2016 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takke/990e5c511f60a5bf01c5770d20f1192d to your computer and use it in GitHub Desktop.
Save takke/990e5c511f60a5bf01c5770d20f1192d to your computer and use it in GitHub Desktop.
画像4枚添付した場合のextended tweetを含むClassic Tweetの例(Streaming)
{
"coordinates": null,
"in_reply_to_user_id_str": null,
"source": "<a href=\"http:\/\/twitter.com\" rel=\"nofollow\">Twitter Web Client<\/a>",
"geo": null,
"in_reply_to_user_id": null,
"user": {
"default_profile_image": false,
"screen_name": "takke",
"profile_link_color": "0084B4",
"profile_background_color": "C0DEED",
"is_translator": false,
"url": "http:\/\/www.panecraft.net",
"profile_background_image_url": "http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png",
"statuses_count": 42181,
"profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/423153841505193984\/yGKSJu78_normal.jpeg",
"profile_text_color": "333333",
"following": null,
"profile_sidebar_border_color": "C0DEED",
"verified": false,
"id": 8379212,
"lang": "ja",
"profile_background_tile": false,
"listed_count": 133,
"id_str": "8379212",
"profile_sidebar_fill_color": "DDEEF6",
"profile_background_image_url_https": "https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png",
"protected": false,
"utc_offset": 32400,
"profile_use_background_image": true,
"notifications": null,
"profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/8379212\/1390720101",
"geo_enabled": true,
"friends_count": 959,
"default_profile": true,
"followers_count": 1599,
"profile_image_url": "http:\/\/pbs.twimg.com\/profile_images\/423153841505193984\/yGKSJu78_normal.jpeg",
"follow_request_sent": null,
"contributors_enabled": false,
"description": "TwitterクライアントTwitPane、FacebookブラウザTafView、mixiブラウザTkMixiViewer、英単語学習ソフト P-Study System 、MZ3\/4 などを開発。「ちょっぴり使いやすい」アプリを日々開発しています。ペーンクラフト代表",
"time_zone": "Tokyo",
"location": "北海道",
"name": "竹内裕昭",
"created_at": "Thu Aug 23 10:06:53 +0000 2007",
"favourites_count": 5588
},
"in_reply_to_status_id_str": null,
"timestamp_ms": "1474775475654",
"favorite_count": 0,
"id": 779890987095031808,
"is_quote_status": false,
"lang": "und",
"possibly_sensitive": false,
"entities": {
"urls": [
{
"indices": [
117,
140
],
"display_url": "twitter.com\/i\/web\/status\/7…",
"expanded_url": "https:\/\/twitter.com\/i\/web\/status\/779890987095031808",
"url": "https:\/\/t.co\/LwQRBBJVU4"
}
],
"hashtags": [],
"user_mentions": [],
"symbols": []
},
"extended_tweet": {
"entities": {
"urls": [],
"hashtags": [],
"user_mentions": [],
"media": [
{
"indices": [
141,
164
],
"id_str": "779889292390739968",
"expanded_url": "https:\/\/twitter.com\/takke\/status\/779890987095031808\/photo\/1",
"media_url": "http:\/\/pbs.twimg.com\/media\/CtK5Le0UsAAXq9u.jpg",
"id": 779889292390739968,
"url": "https:\/\/t.co\/b20vhvOKjf",
"display_url": "pic.twitter.com\/b20vhvOKjf",
"media_url_https": "https:\/\/pbs.twimg.com\/media\/CtK5Le0UsAAXq9u.jpg",
"type": "photo",
"sizes": {
"small": {
"resize": "fit",
"h": 65,
"w": 65
},
"thumb": {
"resize": "crop",
"h": 65,
"w": 65
},
"large": {
"resize": "fit",
"h": 65,
"w": 65
},
"medium": {
"resize": "fit",
"h": 65,
"w": 65
}
}
},
{
"indices": [
141,
164
],
"id_str": "779889397940359170",
"expanded_url": "https:\/\/twitter.com\/takke\/status\/779890987095031808\/photo\/1",
"media_url": "http:\/\/pbs.twimg.com\/media\/CtK5RoBUEAIUmiL.jpg",
"id": 779889397940359170,
"url": "https:\/\/t.co\/b20vhvOKjf",
"display_url": "pic.twitter.com\/b20vhvOKjf",
"media_url_https": "https:\/\/pbs.twimg.com\/media\/CtK5RoBUEAIUmiL.jpg",
"type": "photo",
"sizes": {
"thumb": {
"resize": "crop",
"h": 65,
"w": 65
},
"small": {
"resize": "fit",
"h": 65,
"w": 65
},
"large": {
"resize": "fit",
"h": 65,
"w": 65
},
"medium": {
"resize": "fit",
"h": 65,
"w": 65
}
}
},
{
"indices": [
141,
164
],
"id_str": "779889542249590784",
"expanded_url": "https:\/\/twitter.com\/takke\/status\/779890987095031808\/photo\/1",
"media_url": "http:\/\/pbs.twimg.com\/media\/CtK5aBnUMAAQHTb.jpg",
"id": 779889542249590784,
"url": "https:\/\/t.co\/b20vhvOKjf",
"display_url": "pic.twitter.com\/b20vhvOKjf",
"media_url_https": "https:\/\/pbs.twimg.com\/media\/CtK5aBnUMAAQHTb.jpg",
"type": "photo",
"sizes": {
"small": {
"resize": "fit",
"h": 65,
"w": 65
},
"thumb": {
"resize": "crop",
"h": 65,
"w": 65
},
"large": {
"resize": "fit",
"h": 65,
"w": 65
},
"medium": {
"resize": "fit",
"h": 65,
"w": 65
}
}
},
{
"indices": [
141,
164
],
"id_str": "779890967457300483",
"expanded_url": "https:\/\/twitter.com\/takke\/status\/779890987095031808\/photo\/1",
"media_url": "http:\/\/pbs.twimg.com\/media\/CtK6s-7UAAMB0e6.jpg",
"id": 779890967457300483,
"url": "https:\/\/t.co\/b20vhvOKjf",
"display_url": "pic.twitter.com\/b20vhvOKjf",
"media_url_https": "https:\/\/pbs.twimg.com\/media\/CtK6s-7UAAMB0e6.jpg",
"type": "photo",
"sizes": {
"small": {
"resize": "fit",
"h": 65,
"w": 65
},
"thumb": {
"resize": "crop",
"h": 65,
"w": 65
},
"large": {
"resize": "fit",
"h": 65,
"w": 65
},
"medium": {
"resize": "fit",
"h": 65,
"w": 65
}
}
}
],
"symbols": []
},
"full_text": "1---------2---------3---------4---------5---------6---------7---------8---------9---------0---------1---------2---------3---------4--------- https:\/\/t.co\/b20vhvOKjf",
"display_text_range": [
0,
140
]
},
"id_str": "779890987095031808",
"retweet_count": 0,
"favorited": false,
"in_reply_to_status_id": null,
"truncated": true,
"contributors": null,
"text": "1---------2---------3---------4---------5---------6---------7---------8---------9---------0---------1---------2----… https:\/\/t.co\/LwQRBBJVU4",
"created_at": "Sun Sep 25 03:51:15 +0000 2016",
"filter_level": "low",
"place": null,
"in_reply_to_screen_name": null,
"retweeted": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment