Skip to content

Instantly share code, notes, and snippets.

@Bulletninja
Last active April 27, 2016 22:00
Show Gist options
  • Save Bulletninja/6daca6bd5cfe58c9c6fed5340a5f0de0 to your computer and use it in GitHub Desktop.
Save Bulletninja/6daca6bd5cfe58c9c6fed5340a5f0de0 to your computer and use it in GitHub Desktop.
Bot twittero básico
var Twit = require("twit");
var Bot = new Twit({
consumer_key: "", //tu consumer key
consumer_secret: "", // tu consumer secret
access_token: "", //tu acess token
access_token_secret: "" //tu access token secret
});
Bot.post('statuses/update', {status: "Hola desde node con twit!"}, function(err, data, response){
if(err){
console.log("Hubo un problema al twittear el mensaje :(", err);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment