Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $consumerKey = ' ';
- $consumerSecret = ' ';
- $oAuthToken = ' ';
- $oAuthSecret = ' ';
- include "OAuth.php";
- include "twitteroauth.php";
- $tweet = new TwitterOAuth($consumerKey, $consumerSecret, $oAuthToken, $oAuthSecret);
- if (isset($_GET['msg'])) {
- $tweetmsg = $_GET['msg'];
- $tweet->post('statuses/update',array('status' => $tweetmsg));
- echo "Your message has been sent to Twitter.";
- } else {
- echo "Your message has not been sent to Twitter.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement