atymic/twitter

getTweet() params not work for ApiV1

hebertlima opened this issue · 0 comments

I'm trying to pass parameters to the URL in Apiv1, but it's not being added:

$twitterClient = \Twitter::forApiV1();
$twitterClient->getTweet($tweetId, ['tweet_mode' => 'extended']);
// params not being added

$twitterClient = \Twitter::forApiV2();
$twitterClient->getTweet($tweetId, ['tweet.fields' => 'public_metrics,author_id']);
// params add...
## log from request ApiV1
{
 "method":"GET",
 "query":"https://api.twitter.com/1.1/statuses/show/1586148884463525889.json",
 "url":"https://api.twitter.com/1.1/statuses/show/1586148884463525889.json",
 "params":""
}