Basic info
- Title
- Image
- /file/setup~cross_shared_collection/5890e48925d9852481001074/image/
- Name
- Summary
- Twitter API Integration
- Readme
-
Twitter Integration
1. To send a message to Twitter you need to pull Twitter collection. Go to Collections/ SharedCollections, search twitter and select Pull option.
2. Check the status of your Twitter API OAuth1 authorization and authorize it if it is not. For do this go to Security/Authorizations/OAuth 1.0.Sending a message to Twitter
3. Now you can create and send a message to Twitter using CenitIO API. Twitter messages are available at: https://cenit.io/api/v1/twitter/tweet
To post a message to these URL just format a JSON document like this:
{
"text": "Sent through CenitIO API"
}
You can try with the following culr command .
curl -H "Content-Type: application/json" \-H "X-User-Access-Key: XXXXXXX" \-H "X-User-Access-Token: XXXXXXXXXXXXXXXX" \
-X POST -d '{ "text": "Sending a message through Cenit"}' https://cenit.io/api/v1/twitter/tweet
Restful API
You have a complete set of actions over your data in Cenit.Retrieve a list of messagescurl -H "Content-Type: application/json" \-H "X-User-Access-Key: XXXXXXX" \-H "X-User-Access-Token: XXXXXXXXXXXXXXXX" \Show a message by id
curl -H "Content-Type: application/json" \-H "X-User-Access-Key: XXXXXXX" \-H "X-User-Access-Token: XXXXXXXXXXXXXXXX" \ - Categories
-
Id Title Description Updated at social Social Social media December 01, 2016 17:06 1 Categories -
Name Email Cenit Team support@cenit.io 1 Cross collection authors - Pull count
- 131
- Id
- 5890e48925d9852481001074
- Created at
- January 31, 2017 19:24
- Updated at
- November 30, 2017 20:05
Compute
- Translators
-
Namespace Name Type Updated at Twitter Export Tweet Export January 31, 2017 19:22 Twitter Make Tweet ID Export January 31, 2017 19:22 Twitter Import Tweet Import January 31, 2017 19:22 Twitter Export Direct Message Export January 31, 2017 19:22 Twitter Import Direct Message Import January 31, 2017 19:22 Twitter parser tweet Import September 15, 2017 16:22 6 Transformations - Snippets
-
Namespace Name Type Description Updated at Twitter Export_Tweet.rb Ruby - October 01, 2018 21:57 Twitter Make_Tweet_ID.rb Ruby - October 01, 2018 21:57 Twitter Import_Tweet.rb Ruby - October 01, 2018 21:57 Twitter Export_Direct_Message.rb Ruby - October 01, 2018 21:57 Twitter Import_Direct_Message.rb Ruby - October 01, 2018 21:57 Twitter tweet.json JavaScript - October 01, 2018 21:57 Twitter direct_message.json JavaScript - October 01, 2018 21:57 Twitter follower.json JavaScript - October 01, 2018 21:57 Twitter friendship.json JavaScript - October 01, 2018 21:57 Twitter list_subscriber.json JavaScript - October 01, 2018 21:57 16 Snippets (showing 10)
Workflows
- Flows
-
Namespace Name Active Event Translator Updated at Twitter Tweet Send ‒ Twitter | Export Tweet [Shared] January 31, 2017 19:22 Twitter Status Retweet ‒ Twitter | Make Tweet ID [Shared] January 31, 2017 19:22 Twitter Direct Message Send ‒ Twitter | Export Direct Message [Shared] January 31, 2017 19:22 Twitter Import Tweets ‒ Twitter | parser tweet [Shared] September 28, 2017 14:24 4 Flows - Events
-
Namespace Name Type Updated at Twitter Tweet on created_at Observer - Twitter Retweet Scheduler - Twitter Direct Message on created_at Observer - 3 Events
Connectors
- Connections
-
Namespace Name Url Key Token Authorization Updated at Twitter Twitter Connection https://api.twitter.com September 15, 2017 16:22 1 Connections - Webhooks
-
Namespace Name Path Method Description Authorization Updated at Twitter Status Update 1.1/statuses/update.json post - November 30, 2017 20:06 Twitter Status Retweets 1.1/statuses/retweets/{{id}}.json get - November 30, 2017 20:06 Twitter Status Mentions Timeline 1.1/statuses/mentions_timeline.json get - November 30, 2017 20:06 Twitter Status User Timeline 1.1/statuses/user_timeline.json get - November 30, 2017 20:06 Twitter Status Home Timeline 1.1/statuses/home_timeline.json get - November 30, 2017 20:06 Twitter Direct Messages New 1.1/direct_messages/new.json post - November 30, 2017 20:06 Twitter import tweet.json 1.1/search/tweets.json get - November 30, 2017 20:06 7 Webhooks - Connection Roles
-
Namespace Name Webhooks Connections Updated at Twitter Twitter Rol Twitter | Status Update [Shared], Twitter | Status Retweets [Shared], and Twitter | Status Mentions Timeline [Shared] and Twitter | Twitter Connection [Shared] - 1 Connection Roles
Data
- Data Types
-
Namespace Name Slug Type Storage size Updated at Twitter tweet.json - Json Data Type 0 Bytes September 28, 2017 14:37 Twitter direct_message.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter follower.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter friendship.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter list_subscriber.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter block.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter favorite.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter list_member.json - Json Data Type 0 Bytes September 15, 2017 16:23 Twitter list.json - Json Data Type 0 Bytes September 15, 2017 16:23 9 Data Types
Security
-
Namespace Name Status Type Metadata Updated at Twitter OAuth Authorization Unauthorized Oauth Authorization - 1 Authorizations - OAuth Clients
-
Provider Name Identifier Secret Request token parameters Request token headers Template parameters Updated at Cenit | Twitter [Shared] CenitSaaS May 12, 2016 16:53 1 Remote OAuth Clients - OAuth Providers
-
Namespace Name Type Authorization endpoint Cenit Twitter Oauth Provider https://api.twitter.com/oauth/authorize 1 Providers
Config
- Namespaces
-
Name Slug Updated at Twitter twitter - Cenit cenit - 2 Namespaces