Create a gist now

Instantly share code, notes, and snippets.

@kypkyp /twitter.js
Last active Dec 24, 2016

ついったー
var Twitter = require('twitter');
var twitterClient = new Twitter({
consumer_key: ***,
consumer_secret: ***,
access_token_key: ***,
access_token_secret: ***
});
twitterClient.post('statuses/update', {status: "node.jsからのつぶやきテスト"}, function(error, tweet, response){
if(!error){
console.log("できた");
}else{
console.log("できなかった");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment