Last active
April 27, 2016 22:00
-
-
Save Bulletninja/6daca6bd5cfe58c9c6fed5340a5f0de0 to your computer and use it in GitHub Desktop.
Bot twittero básico
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 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