Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('/home/user/public_html/bot_twit/twitteroauth.php');
- define('CONSUMER_KEY', 'CONSUMER_KEY_KAMU');
- define('CONSUMER_SECRET', 'CONSUMER_SECRET_KAMU');
- define('ACCESS_TOKEN', 'ACCESS_TOKEN_KAMU');
- define('ACCESS_TOKEN_SECRET', 'ACCESS_TOKEN_SECRET_KAMU');
- $twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
- $twitter->host = "https://api.twitter.com/1/";
- if(!empty($_GET['bot'])){
- $status = $_GET['bot'];
- } else {
- $status = "Bot Twit ini dipersembahkan oleh http://bhieneka.blogspot.com";
- }
- if(strlen($status) > 140) $status = substr($status, 0, 139);
- $twitter->post('statuses/update', array('status' => $status));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement