Hello @happycamper
I’m using this url : https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=aToTest1&tweet_mode=extended&trim_user=true&include_rts=true
I also noticed another problem with the quoted tweet. The field “favorited” in “quoted_status” is always false. Even if the original tweet is liked.
Only “bug” when using quoted tweet, it’s work fine with retweeted_status
how to reproduce (i use 2 account):
- Account1 -> like random tweet
- Account2 -> quote the random tweet (
- Account1 -> Get user_timeline (account2) on user behalf (Account1)
This is the response using the first url, if you take a look you can see the 2 problems.
- User object inside “retweeted_status” and “quoted_status” is not a full user object only trim values.
- The field “favorited” is false inside “quoted_status” even if the initial tweet is liked (liked before quote)
[
{
"created_at": "Fri Oct 19 09:01:48 +0000 2018",
"id": 1053209590144360448,
"id_str": "1053209590144360448",
"full_text": "RT @LaurentCaccia: Saison 10, j-10 ! J'attends le départ comme ça https://t.co/9gzA4Mf8hY",
"truncated": false,
"display_text_range": [
0,
89
],
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [
{
"screen_name": "LaurentCaccia",
"name": "Laurent Caccia",
"id": 1370090647,
"id_str": "1370090647",
"indices": [
3,
17
]
}
],
"urls": [],
"media": [
{
"id": 1052867987814805504,
"id_str": "1052867987814805504",
"indices": [
66,
89
],
"media_url": "http://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"media_url_https": "https://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"url": "https://t.co/9gzA4Mf8hY",
"display_url": "pic.twitter.com/9gzA4Mf8hY",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544/photo/1",
"type": "photo",
"sizes": {
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"medium": {
"w": 1024,
"h": 576,
"resize": "fit"
}
},
"source_status_id": 1052868001270124544,
"source_status_id_str": "1052868001270124544",
"source_user_id": 1370090647,
"source_user_id_str": "1370090647"
}
]
},
"extended_entities": {
"media": [
{
"id": 1052867987814805504,
"id_str": "1052867987814805504",
"indices": [
66,
89
],
"media_url": "http://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"media_url_https": "https://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"url": "https://t.co/9gzA4Mf8hY",
"display_url": "pic.twitter.com/9gzA4Mf8hY",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544/photo/1",
"type": "photo",
"sizes": {
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"medium": {
"w": 1024,
"h": 576,
"resize": "fit"
}
},
"source_status_id": 1052868001270124544,
"source_status_id_str": "1052868001270124544",
"source_user_id": 1370090647,
"source_user_id_str": "1370090647"
}
]
},
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
"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,
"user": {
"id": 1035170857147084800,
"id_str": "1035170857147084800"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweeted_status": {
"created_at": "Thu Oct 18 10:24:27 +0000 2018",
"id": 1052868001270124544,
"id_str": "1052868001270124544",
"full_text": "Saison 10, j-10 ! J'attends le départ comme ça https://t.co/9gzA4Mf8hY",
"truncated": false,
"display_text_range": [
0,
46
],
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": [],
"media": [
{
"id": 1052867987814805504,
"id_str": "1052867987814805504",
"indices": [
47,
70
],
"media_url": "http://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"media_url_https": "https://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"url": "https://t.co/9gzA4Mf8hY",
"display_url": "pic.twitter.com/9gzA4Mf8hY",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544/photo/1",
"type": "photo",
"sizes": {
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"medium": {
"w": 1024,
"h": 576,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 1052867987814805504,
"id_str": "1052867987814805504",
"indices": [
47,
70
],
"media_url": "http://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"media_url_https": "https://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"url": "https://t.co/9gzA4Mf8hY",
"display_url": "pic.twitter.com/9gzA4Mf8hY",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544/photo/1",
"type": "photo",
"sizes": {
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"medium": {
"w": 1024,
"h": 576,
"resize": "fit"
}
}
}
]
},
"source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>",
"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,
"user": {
"id": 1370090647,
"id_str": "1370090647"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 16,
"favorite_count": 211,
"favorited": true,
"retweeted": false,
"possibly_sensitive": false,
"lang": "fr"
},
"is_quote_status": false,
"retweet_count": 16,
"favorite_count": 0,
"favorited": true,
"retweeted": false,
"possibly_sensitive": false,
"lang": "fr"
},
{
"created_at": "Fri Oct 19 09:01:44 +0000 2018",
"id": 1053209571265839104,
"id_str": "1053209571265839104",
"full_text": "quote retweet https://t.co/J2aWYlKQTf",
"truncated": false,
"display_text_range": [
0,
13
],
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": [
{
"url": "https://t.co/J2aWYlKQTf",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544",
"display_url": "twitter.com/LaurentCaccia/…",
"indices": [
14,
37
]
}
]
},
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
"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,
"user": {
"id": 1035170857147084800,
"id_str": "1035170857147084800"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": true,
"quoted_status_id": 1052868001270124544,
"quoted_status_id_str": "1052868001270124544",
"quoted_status_permalink": {
"url": "https://t.co/J2aWYlKQTf",
"expanded": "https://twitter.com/LaurentCaccia/status/1052868001270124544",
"display": "twitter.com/LaurentCaccia/…"
},
"quoted_status": {
"created_at": "Thu Oct 18 10:24:27 +0000 2018",
"id": 1052868001270124544,
"id_str": "1052868001270124544",
"full_text": "Saison 10, j-10 ! J'attends le départ comme ça https://t.co/9gzA4Mf8hY",
"truncated": false,
"display_text_range": [
0,
46
],
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": [],
"media": [
{
"id": 1052867987814805504,
"id_str": "1052867987814805504",
"indices": [
47,
70
],
"media_url": "http://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"media_url_https": "https://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"url": "https://t.co/9gzA4Mf8hY",
"display_url": "pic.twitter.com/9gzA4Mf8hY",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544/photo/1",
"type": "photo",
"sizes": {
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"medium": {
"w": 1024,
"h": 576,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 1052867987814805504,
"id_str": "1052867987814805504",
"indices": [
47,
70
],
"media_url": "http://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"media_url_https": "https://pbs.twimg.com/media/DpyJ20kU8AA8Bt-.jpg",
"url": "https://t.co/9gzA4Mf8hY",
"display_url": "pic.twitter.com/9gzA4Mf8hY",
"expanded_url": "https://twitter.com/LaurentCaccia/status/1052868001270124544/photo/1",
"type": "photo",
"sizes": {
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 383,
"resize": "fit"
},
"medium": {
"w": 1024,
"h": 576,
"resize": "fit"
}
}
}
]
},
"source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>",
"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,
"user": {
"id": 1370090647,
"id_str": "1370090647"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 16,
"favorite_count": 211,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"lang": "fr"
},
"retweet_count": 0,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"lang": "en"
}
]