@runnerty/trigger-twitter

1.1.1 • Public • Published

Twitter Trigger for Runnerty:

With this trigger you can stream twitter hashtags and collect the data from the user and the tweet

Configuration sample:

{
  "id":"twitter_default",
  "type":"@runnerty-trigger-twitter",
  "consumerKey":"123abc",
  "consumerSecret":"123abc",
  "accessToken":"123abc",
  "accessTokenSecret":"123abc"
}

Plan sample to Stream a hashtag

{
  "id":"twitter_default",
  "command":"hashtag",
  "hashtag":"#runnerty",
  "language": "en" // This param is optional, by default is set to 'en'
}

Plan sample to Stream a follow event on the account

{
  "id":"twitter_default",
  "command":"follow"
}

Chain input

This trigger sends to the input of the chain data from the user/tweet which you can use in you plan:

user_id: number
user_id_str: number
user_name: string
user_screen_name: string
user_location: string
user_description: string
user_followers_count: number
user_friends_count: number
user_listed_count: number
user_favourites_count: number
user_statuses_count: number
user_lang: string
user_profile_background_image_url: string
user_profile_image_url: string
user_following: boolean
user_follow_request_sent: boolean
tweet_created_at: date
tweet_id: number
tweet_id_str: number
tweet_text: string
tweet_retweet_count: number
tweet_favorite_count: number
tweet_hashtags: object
tweet_data: object with all the data retreived by the Twitter API

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @runnerty/trigger-twitter

    Weekly Downloads

    0

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    9.38 kB

    Total Files

    7

    Last publish

    Collaborators

    • coderty