|
Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAIGlobalClass< TYPE, SUPER >.
Function List | |
| init | |
| login | |
| isLoggedIn | |
| setAccessToken | |
| sendTweet | |
Initialize Twitter.
function init ( string consumerKey, string consumerSecret, string callbackUrl )
| consumerKey | ( string ) OAuth consumer key |
| consumerSecret | ( string ) OAuth consumer secret |
| callbackUrl | ( string ) Available in Twitter developer settings. |
Determine if twitter is currently authorized.
function isLoggedIn ()
Prompt the user to login to Twitter.
function login ()
Tweet the provided text.
function sendTweet ( [ string text ] )
| text | ( string ) Optional. The text for the tweet. |
Set the access token that authenticates the user.
function setAccessToken ( string token, string tokenSecret )
| token | ( string ) OAuth token |
| tokenSecret | ( string ) OAuth token secret |