Category: Social
| Runtime: 2.1+
| Available: Free
# Overview
Twitter node will enable to send tweets or direct messages on Twitter platform.
# Setup
# Prerequisites
For Twitter node to work properly, you need to have a Twitter account and a Twitter app to generate the consumer key, consumer secret, token, and token secret. For more details refer twitter authentication (opens new window).
# Installation
To install the node from designer:
- Go to Add more nodes option on the palette section.
- Check for the Twitter node and click install.
- Once installed, the designer is required to be restarted.
To install the node from CLI:
- Go to your project workspace where you can see your
package.json
file. - Run the below give npm command.
npm i @kumologica/kumologica-contrib-twitter
# Technical Details
Properties
- Consumer Key (Required)
Consumer key generated from your Twitter App. - Consumer Secret (Required)
Consumer secret generated from your Twitter App. - Token (Required)
Token generated from your Twitter App. - Token Secret (Required)
Token secret generated from your Twitter App. - Username (optional)
Username of the target twitter account to which direct message to be delivered. This is only applicable for direct messages. - Payload (optional)
Status of the tweet to update or the direct message to be delivered.
Supported Operations
- Send-Tweet
Send-Tweet operation help to send your message as a tweet. - Send-DirectMessage
Send-DirectMessage operation help to send your message directly to the Twitter messenger user. You need to provide the username of the recipient for this operation.
Throws
Twitter node throws the following exception.
- TwitterBadRequestError
- TwitterAuthenticationError
- TwitterClientError
- TwitterConnectionError
- TwitterNoUserFoundError
Returns
Payload is not overwritten by the response from this node as there is no response expected out from both the operation supported by the node.