Skip to content

Instantly share code, notes, and snippets.

@ikr7
Created October 26, 2013 10:27
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 ikr7/7167814 to your computer and use it in GitHub Desktop.
Save ikr7/7167814 to your computer and use it in GitHub Desktop.
//@sn update_name [string]
module.exports = function(twi, data, cfg){
var name = data.text.split(' ')[2];
twi.post('/account/update_profile.json', {
'name': name
}, function(err, res){
if(!err){
console.log(res);
}else{
console.error(err);
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment