Twitter api text field value is truncated

后端 未结 2 1184
名媛妹妹
名媛妹妹 2021-02-02 05:03

why text field value is truncated and how can i get complete value. As of now i am trying to get text field value like below

do {
       if let responseObject =          


        
2条回答
  •  名媛妹妹
    2021-02-02 06:01

    The status in this example is a retweet, and the text for retweets will be truncated to 140 characters even after including tweet_mode=extended. The full text of the original tweet is in the retweeted_status field of the JSON response. Here's what you want:

    let text = status["retweeted_status"]["full_text"].

    Keep in mind that you should still include tweet_mode=extended in your request.

提交回复
热议问题