Skip to content

How do i send a tweet?

jpurcell edited this page Aug 3, 2011 · 2 revisions
BH.tweet('Default text in the textarea field.');

Or, use a callback to tell whether or not the tweet sent:

BH.tweet('Default text in the textarea field.', function(e) {
    var alertMsg = Ti.UI.createAlertDialog();
    if (e===true) {
        alertMsg.message = 'Sent!';
    } else {
        alertMsg.message = 'Failed!';
    }
    alertMsg.show();
});
Clone this wiki locally