【发布时间】:2019-12-14 06:57:21
【问题描述】:
https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline.html 没有提及 tweet_mode
我想知道是不是我使用了错误的 API 才能利用 tweet_mode?
在我的应用程序中,我提供了 tweet_mode=extended 参数,但它没有任何效果。我的代码...
// Load the Tweets.
$args = array(
'screen_name' => $username,
'exclude_replies' => 'true',
'include_rts' => 'true',
'tweet_mode' => 'extended',
'count' => $numitems,
);
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$tweets = $connection->get('statuses/user_timeline', $args);
if (!empty($tweets)) {
foreach ($tweets as $tweet) {
$text = $tweet->full_text;
// etcetera
【问题讨论】: