Skip to content
Send and receive messages from Twitter, and search or post Tweets.
Java Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.util
platform
runtime
.gitignore
.travis.yml
LICENSE.md
README.md
pom.xml

README.md

Xatkit Twitter Platform

License Badge Build Status Wiki Badge

Send and receive messages from Twitter, and search or post Tweets.

Providers

The Twitter platform does not define any provider.

Actions

Action Parameters Return Return Type Description
PostATweet - content (String): the content of the tweet to post 0 if the tweet has been posted, 1 otherwise Integer Posts a tweet on behalf of the configured user with the provided content
SendDM - user (String): the twitter user to send a direct message to
- text (String): the content of the direct message
0 if the direct message has been sent, 1 otherwise Integer Sends a direct message to the provided user with the given text
ReceiveDM - A list of Slack Attachments containing the latest direct messages received List<Attachment> Retrieves the latest direct messages received by the configured user
LookForTweets - query (String): the search terms used to retrieve tweets A list of Slack Attachments containing the tweets matching the provided query List<Attachment> Retrieves a series of tweets matching the provided search query

Options

The Twitter platform supports the following configuration options

Key Values Description Constraint
xatkit.twitter.consumerKey String The consumer key of the Twitter app used by Xatkit to deploy the bot Mandatory
xatkit.twitter.consumerSecret String The consumer secret of the Twitter app used by Xatkit to deploy the bot Mandatory
xatkit.twitter.accessToken String The access token of the Twitter app used by Xatkit to deploy the bot Mandatory
xatkit.twitter.accessSecretToken String The access token secret of the Twitter app used by Xatkit to deploy the bot Mandatory

To fill these options you need to have a Twitter developer account and create an app. The different keys and access tokens can be found at this location: https://developer.twitter.com/en/apps/{YOURAPPID}.

Note

SendDM and ReceiveDM actions require additional permissions that must be set in your app settings (direct message permissions are not granted by default).

You can’t perform that action at this time.