Reputation: 633
I'm looking something simple in php for update a status of my user, like a bot.
All lib's are complicated or complex, and simple's haven't update to aouth autentication.
You know som lib for update status in twitter? not for make app twitter, just send update status with a cron.
Edit I found this example very simple:
http://ditio.net/2010/06/07/twitter-php-oauth-update-status/
with this lib: https://github.com/jmathai/twitter-async
Upvotes: 0
Views: 531
Reputation: 47893
The quick way to post a new status with TwitterOAuth.
require "vendor/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
$statues = $connection->post("statuses/update", ["status" => "hello world"]);
Upvotes: 1