Created
October 10, 2013 21:57
-
-
Save chrislaughlin/6926275 to your computer and use it in GitHub Desktop.
Posting a status using Twit
This file contains hidden or 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
console.log("Posting Tweet"); | |
var statusUpdate = 'Testing Status: ' + new Date().getTime(); | |
T.post('statuses/update', { status: statusUpdate }, function(err, reply) { | |
if (err) { | |
console.dir(err); | |
} else { | |
console.dir(reply); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment