Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. require "twitteroauth/autoload.php"<
  3. use Abraham\TwitterOAuth\TwitterOAuth;
  4. $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token, $access_token_secret);
  5. $content = $connection->get("account/verify_credentials");
  6. $statuses = $connection->post("statuses/update", ["status" => "YOUR TWEET HERE"]);
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement