Getting Started
Basic Concepts
Tutorials
Advanced Concepts
How-to Guides
Building integration flows
Data transformation
Integration patterns
Developing Components
Components
CRM Components
ERP Components
E-Commerce Components
Basic Components
Utility Components
References
Sailor
Component Descriptor
Covered in this article
Related articles

Twitter component

Description

Twitter component for the elastic.io platform.

Credentials

  • Consumer key
  • Consumer secret
  • Access token key
  • Access token secret

Actions

Post tweet

in/out metadata can be found at /lib/schemas/postTweet.{in/out}.json

usage example

input message:

{
    "text": "hi there"
}

output message:

{
    "text": "hi there",
    "id": "979656103867887616",
    "createdAt": "Fri Mar 30 09:46:30 +0000 2018"
}

Search tweets

in/out metadata can be found at /lib/schemas/searchTweets.{in/out}.json

usage example

input message:

{
    "text": "hi there",
    "count": 2
}

output message:

{
	"tweets": [
		{
            "id": "979656598619607040",
            "userId": "123123",
            "createdAt": "Fri Mar 30 09:48:28 +0000 2018",
            "text": "@user123123 Hi there. If you would like to provide feedback about our packaging, please follow this link:…",
			"lang": "en"
		},
		{
            "id": "979656548753592320",
            "userId": "456456",
            "createdAt": "Fri Mar 30 09:48:17 +0000 2018",
            "text": "@user456456 Hi there, what sort of information can I help you with? Are you looking at train times for today?",
			"lang": "en",
		}
	]
}

To retrieve credentials you need to create Twitter App here https://apps.twitter.com/ and generate token in that app.