Twitter

Twitter

Contents

Outgoing channel : "TWITTER_CHANNEL"

Authorization fields

Field 1

  • Name: twitterAPIkey
  • Value: API key

Field 2

  • Name: twitterAPISecret
  • Value: API key secret

Field 3

  • Name: twitterAccessToken
  • Value: Access Token

Field 4

  • Name: TwitterAccessTokenSecret
  • Value: Access Token Secret

Current features

Curently the twitter extension only allows posting of messages to twitter. It will be upgraded at some point to receive messages and send them out on the channel when I get time to do it.

Sending messages

Send an extension message of type "PostTweet" to the "twitter" extension with the data field containing the message to be posted.

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: Wed, 12 Mar 2025 05:38:02 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

SaveConfigToServer()

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

SendCredentialsModal(extensionname)

Send our CredentialsModal to whoever requested it
Parameters:
Name Type Description
extensionname String
Source:

SendSettingsWidgetSmall(tochannel)

send some modal code to be displayed on the admin page or somewhere else this is done as part of the webpage request for modal message we get from extension. It is a way of getting some user feedback via submitted forms from a page that supports the modal system
Parameters:
Name Type Description
tochannel String
Source:

connectToTwitter(creds)

Connects to the twitter API
Parameters:
Name Type Description
creds object
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:

tweetmessage(message)

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