abraham/twitteroauth
TwitterOAuth is a widely used PHP library for Twitter’s OAuth REST API. It supports currently supported PHP versions and provides authenticated request handling for Twitter endpoints. In maintenance mode with no new features planned.
Remove missed curl_close
Change the third argument of callers from a boolean to an array
+ $connection->post("tweets", ["text" => $text], ['jsonPayload' => true]);
- $connection->post("tweets", ["text" => $text], true);
$connection->upload(
'media/upload',
['media' => $file_path, 'media_type' => 'video/mp4'],
+ ['chunkedUpload' => true],
- true
);
Default v2 to JSON payload
Default to Twitter API v2.
For v1 APIs you can switch back using:
$connection->setApiVersion('1.1');
Require PHP 8
random_intapiUrl to protected. Overriding apiUrl is not officially supported.$connection = new TwitterOAuth(...);
$connection->setApiVersion('2');
$response = $connection->get('users', ['ids' => 12]);
1.x is the last version to support PHP versions < 7.2. 1.x will get critical security and bug fixes while feature development will go toward a future 2.x release.
boolean to 'boolean'setChunkSize to set the chunk size for file uploadsUse system TLS certificates when in PHAR compression format.
How can I help you explore Laravel packages today?