REST API returning truncated text

api

#1

Hi,

I have an issue when retrieving data from a status with the REST API.

This status is sent from a conversational card :

The following request returns a truncated text, which omits the mention :

Request :
twurl '/1.1/statuses/show.json?id=1009352626243342336'

Response :
"text":"Ma connaissance sur la #Qualit\u00e9DeLEau est-elle aussi #potable que l\u2019eau qui lave cette fraise ? Je fais le test ave\u2026 https:\/\/t.co\/X4UxK6T3GU"

Issue does not appear when sending the status with copy pasted text from conversational card.
Issue does not appear when editing conversational card and removing #QualitéDeLEau

Full response :
{"created_at":"Wed Jun 20 08:29:53 +0000 2018","id":1009352626243342336,"id_str":"1009352626243342336","text":"Ma connaissance sur la #Qualit\u00e9DeLEau est-elle aussi #potable que l\u2019eau qui lave cette fraise ? Je fais le test ave\u2026 https:\/\/t.co\/X4UxK6T3GU","truncated":true,"entities":{"hashtags":[{"text":"Qualit\u00e9DeLEau","indices":[23,37]},{"text":"potable","indices":[53,61]}],"symbols":[],"user_mentions":[],"urls":[{"url":"https:\/\/t.co\/X4UxK6T3GU","expanded_url":"https:\/\/twitter.com\/i\/web\/status\/1009352626243342336","display_url":"twitter.com\/i\/web\/status\/1\u2026","indices":[117,140]}]},"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,"user":{"id":983980844766367745,"id_str":"983980844766367745","name":"James Patatronche","screen_name":"JPatatronche","location":"","description":"","url":null,"entities":{"description":{"urls":[]}},"protected":false,"followers_count":2,"friends_count":1,"listed_count":0,"created_at":"Wed Apr 11 08:11:29 +0000 2018","favourites_count":0,"utc_offset":null,"time_zone":null,"geo_enabled":false,"verified":false,"statuses_count":3,"lang":"fr","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"F5F8FA","profile_background_image_url":null,"profile_background_image_url_https":null,"profile_background_tile":false,"profile_image_url":"http:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png","profile_image_url_https":"https:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/983980844766367745\/1523465883","profile_link_color":"1DA1F2","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"default_profile":true,"default_profile_image":true,"following":false,"follow_request_sent":false,"notifications":false,"translator_type":"none"},"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,"possibly_sensitive_appealable":false,"lang":"fr"}


#2

Hello @adrlen,

You need to pass along tweet_mode=extended to receive the ‘full text’ JSON object.


#3

Hey @LeBraat, thanks for your response.

It indeed works.

However, why do we need to add an optional parameter to get the full tweet ? Parameter that is not documented by the way :

https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id


#4

This is to enable backwards-compatibility for apps that have not been updated to understand extended Tweets. The documentation is here, and updates to individual endpoint documentation is overdue. Apologies for the confusion here.


#5