Moai SDK  1.5 revision 1 (MoaiEdition)
MOAITwitterAndroid Class Reference

Inherits MOAIGlobalClass< TYPE, SUPER >.

List of all members.

Function List

  init
  login
  isLoggedIn
  setAccessToken
  sendTweet

Function Documentation

Initialize Twitter.


function init ( string consumerKey, string consumerSecret, string callbackUrl )
Parameters:
consumerKey ( string ) OAuth consumer key
consumerSecret ( string ) OAuth consumer secret
callbackUrl ( string ) Available in Twitter developer settings.
Returns:
nil

Determine if twitter is currently authorized.


function isLoggedIn ()
Returns:
isLoggedIn ( boolean )

Prompt the user to login to Twitter.


function login ()
Returns:
nil

Tweet the provided text.


function sendTweet ( [ string text ] )
Parameters:
text ( string ) Optional. The text for the tweet.
Returns:
nil

Set the access token that authenticates the user.


function setAccessToken ( string token, string tokenSecret )
Parameters:
token ( string ) OAuth token
tokenSecret ( string ) OAuth token secret
Returns:
nil