Skip to content

Instantly share code, notes, and snippets.

@tamanobi
Created June 16, 2015 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamanobi/36934771efef05bd7865 to your computer and use it in GitHub Desktop.
Save tamanobi/36934771efef05bd7865 to your computer and use it in GitHub Desktop.
NodeJSでTweet(node-twitter必要)
var bot = new twitter({
consumer_key : '',
consumer_secret : '',
access_token_key : '',
access_token_secret : ''
});
bot.post('statuses/update', {status: 'I am a tweet'}, function(error, tweet, response){
if (!error) {
console.log(tweet);
} else {
console.log('error');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment