node-red-nodes/social/twitter
Nick O'Leary f1c8cb5e83 Fix twitter auth 2015-07-17 13:52:19 +01:00
..
locales/en-US Add i18n content for moved core nodes 2015-06-16 10:36:19 +01:00
27-twitter.html Fix twitter auth 2015-07-17 13:52:19 +01:00
27-twitter.js bump package versions of i18n nodes 2015-07-14 23:03:46 +01:00
LICENSE Add Twitter to node-red-nodes. fix lint etc 2015-06-13 18:53:02 +01:00
README.md Update Note(s) in READMEs for all moved out nodes. 2015-06-16 21:37:22 +01:00
package.json Fix twitter auth 2015-07-17 13:52:19 +01:00

README.md

node-red-node-twitter

Node-RED nodes to talk to Twitter.

The Twitter API will NOT deliver 100% of all tweets. This does NOT give access to the Twitter Firehose.

Tweets of who you follow will include their retweets and favourites.

Note : This is the same node as was in the core of Node-RED. As of v0.10.8 it will be installed from here instead.

Install

Run the following command in the root directory of your Node-RED install, usually this is ~/.node-red .

    npm install node-red-node-twitter

Usage

Provides two nodes - one to receive messages, and one to send.

###Input

Twitter input node. Can be used to search either:

  • the public or a user's stream for tweets containing the configured search term
  • all tweets by specific users
  • direct messages received by the authenticated user

Use space for and, and comma , for or when searching for multiple terms.

Sets the msg.topic to tweets/ and then appends the senders screen name.

Sets msg.location to the tweeters location if known.

Sets msg.tweet to the full tweet object as documented by Twitter.

Note: when set to a specific user's tweets, or your direct messages, the node is subject to Twitter's API rate limiting. If you deploy the flows multiple times within a 15 minute window, you may exceed the limit and will see errors from the node. These errors will clear when the current 15 minute window passes.

###Output

Tweets the msg.payload.

To send a Direct Message (DM) - use a payload like.

    D {username} {message}

If msg.media exists and is a Buffer object, this node will treat it as an image and attach it to the tweet.