twitter api不返回截断的文本

rem*_*oys 2 twitter json

我正在发出JSon请求以获取特定用户的推文,这是我的请求网址,https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=booty&count=50 我正在获取请求的结果,但是有一个问题,如果返回的推文的文本很长,那么默认情况下它会被截断,我怎么能得到截断的文本?或者我可以禁用此截断?这是返回的截断结果的示例

        {
    geo = "<null>";
    id = 848983209580822529;
    lang = en;
    place = "<null>";
    "possibly_sensitive" = 0;
    "retweet_count" = 8789;
    retweeted = 0;
    source = "<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>";
    text = "It was an honor to welcome President Al Sisi of Egypt to the @WhiteHouse as we renew the historic partnership betwe\U2026 "; // here can see the text is truncated 
    truncated = 1;
}
Run Code Online (Sandbox Code Playgroud)

结果文字: It was an honor to welcome President Al Sisi of Egypt to the @WhiteHouse as we renew the historic partnership betwe....

这是原始的推文文本: It was an honor to welcome President Al Sisi of Egypt to the @WhiteHouse as we renew the historic partnership between the U.S. and Egypt.

rem*_*oys 6

经过数小时的研究,我发现我所需要的只是我的Google搜索的正确关键字,添加tweet_mode=extended了请求网址即可完成这项工作。

上一个网址: https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=booty&count=50

正确的网址: https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=booty&count=50&tweet_mode=extended

并使用文本full_text代替text密钥。

更多详细信息-> https://twittercommunity.com/t/truncated-text-and-media-entities-not-returned/74358