Created
June 16, 2015 13:11
-
-
Save tamanobi/36934771efef05bd7865 to your computer and use it in GitHub Desktop.
NodeJSでTweet(node-twitter必要)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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