Twitter

Twitter

Contents

Current features

Currently the twitter extension only allows posting of messages to twitter. It will be upgraded at some point to receive messages etc when I get round to updating it or if someone requests it.

Credentials

Follow the steps on the the StreamRoller main settings page for the extension

Sending messages

Send an extension an action of type "PostTweet" with the relevant data from the autopilot page

Triggers/Actions

Triggers and actions below are updated when the automatic document generation system is run and only contain triggers actions relating to this specific extension.

Table last updated: Thu, 24 Apr 2025 00:04:28 GMT

Triggers

name trigger description

Actions

name trigger description
TwitterPostTweet action_PostTweet Post a message to twtter

"Twitter" Extension Details...

Connects to twitter allowing sending of tweets. Initial version, needs expanded
functionality adding when I get time or someone requests it :P
Source:

Methods

DeleteCredentialsOnServer()

Delete our credential file from the server
Source:

SaveConfigToServer()

Sends our config to the server to be saved for next time we run
Source:

SaveCredentialToServer(name, value)

Sends Credential to the server to be saved
Parameters:
Name Type Description
name string
value string
Source:

SendSettingsWidgetLarge(to)

Parameters:
Name Type Description
to String channel to send to or "" to broadcast
Source:

SendSettingsWidgetSmall(to)

Parameters:
Name Type Description
to String
Source:

connectToTwitter()

Connects to the twitter API
Source:

heartBeatCallback()

Sends out heartbeat messages so other extensions can see our status
Source:

initialise(app, host, port, heartbeat)

Starts the extension using the given data.
Parameters:
Name Type Description
app object:Express
host string
port number
heartbeat number
Source:

onDataCenterConnect(socket)

Connection message handler
Parameters:
Name Type Description
socket *
Source:

onDataCenterDisconnect(reason)

Disconnection message sent from the server
Parameters:
Name Type Description
reason String
Source:

onDataCenterMessage(server_packet)

receives message from the socket
Parameters:
Name Type Description
server_packet data
Source:

parseSettingsWidgetLargeData(extData)

parse the received data from a modal submit from the user
Parameters:
Name Type Description
extData object // modal data
Source:

tweetmessage(message)

tweet a message
Parameters:
Name Type Description
message String
Source: