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