Skip to content

Instantly share code, notes, and snippets.

@kypkyp
Last active December 24, 2016 19:07
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 kypkyp/2eb153b70f3085e7daa7039174d6cf44 to your computer and use it in GitHub Desktop.
Save kypkyp/2eb153b70f3085e7daa7039174d6cf44 to your computer and use it in GitHub Desktop.
ついったー
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