Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var TwitterPackage = require('twitter');
- var secret = {
- consumer_key: '0glhUaxxxxxxxxxxxxxxxxxxxxxVjVfcyzSIkXpI11T4DEvJYWuFj7bF74PPgPs',
- access_token_key: '93417xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxBZw8SiIZ',
- access_token_secret: 'sA0xxxxxxxxxxxxxxxxxxxxxxxxLIYtbK6kf'
- }
- var Twitter = new TwitterPackage(secret);
- Twitter.post('statuses/update', {status: 'hello there!'}, function(error, tweet, response){
- if(error){
- console.log(error);
- }
- console.log(tweet); // Tweet body.
- console.log(response); // Raw response object.
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement