tweet

Top  Previous  Next

This function will send a tweet on behalf of the authorized account.

Definition

twitter.tweet( message, callback )

 

Name

Type

Description

message

string

message to send, limited to 140 characters.

callback

function

Callback to be called after operation completes.

Callback function signature

function ( status, messageId )

 

Name

Type

Description

status

boolean

true if tweet was published false otherwise.

messageId

string

The id of the published tweet.

Example

twitter.tweet('Hello World', function ( status, messageId )

 print("Tweet sent: ", status, messageId )

end)

This will print

 

Tweet sent: 2342342342

Related

Twitter

Availability

Lua

Actions