Skip to content

Latest commit

 

History

History
171 lines (127 loc) · 3.95 KB

twitter.md

File metadata and controls

171 lines (127 loc) · 3.95 KB
description
Seamlessly integrate Twitter with your favorite APIs, databases, and programming languages, using WayScript.

Twitter

A social media platform.

{% hint style="info" %} Check out twython on GitHub. {% endhint %}

🔎 Search for a Word or #Hashtag

⚙ Settings

  • Number of Tweets - Enter the number of tweets you want to receive.

💡 Advanced

  • Ignore Retweets - Ignore retweets of posts. Will only return original tweets.
  • Ignore Replies - Ignore replies to posts. Will only return original tweets.
  • Result Type - Specifies what type of search results you would prefer to receive. The default value is "Mixed".
    • Options: Recent, Popular, Mixed

📥 Inputs

  • Search Term - Excepts Keywords, #hashtags, or @usernames.
    • Max length: 500 characters.

📤 Output

Tweets = [
    {
        content : String, 
        username : String, 
        name : String, 
        id : Int,
        retweet_count : Int,
        follower_count : Int, 
        favorite_count : Int,
        date : Date,
        url : String, 
        hashtags : [
            String,
        ],
        user_mentions : [
            String,
        ],
        url_mentions : [
            String,
        ],
    },
]

🐦 Tweet History of a User

📥 Inputs

  • Include Retweets - Select whether you want to include retweets or not.
    • Options: Yes, No
  • Username - Enter the name of the User whose tweet history you want.
    • Note: @ not required in username

📤 Output

Tweets = [
    {
        content : String, 
        username : String, 
        name : String, 
        id : Int,
        retweet_count : Int,
        follower_count : Int, 
        favorite_count : Int,
        date : Date,
        url : String, 
        hashtags : [
            String,
        ],
        user_mentions : [
            String,
        ],
        url_mentions : [
            String,
        ],
    },
]

👥 Get Data on a User by Username

📥Inputs

  • Username - Enter the name of the User whose tweet history you want.
    • Note: @ not required in username

📤 Outputs

User = {
         description : String, 
         website : String, 
         num_followers : Int, 
         num_following : Int,
         num_tweets: Int,
         likes : Int, 
         location : String,
         name : Date,
         profile_image_url : String, 
         verified : String
         created_at : Date
}

📖 Get User Followers and Following

{% hint style="warning" %} Due to Twitter's Rate Limiting Policy, this is a slow operation (takes 1 minute per 200 users in either category... so be selective with this mode). {% endhint %}

This mode lets you pull in lists of the usernames of a users followers and friends (people the user follows).

Inputs

  • Username - Enter the name of the User (e.g. WayScriptHQ)
    • Note: @ not required in username

📤 Outputs

Follower Data = {
                  following_usernames : [ String ],
                  follower_usernames  : [ String ]
}

💬 Post a Twitter Status

📥 Inputs

  • Message - Enter in the message field what you want your status to be.

Posting a Twitter Status

⌛ My Profile Timeline

This mode pulls data from your own timeline.

📤 Outputs

  • Tweets
  • Number of Post Retweets

👍 Like a Tweet

This mode allows you to like a tweet by its tweet id. This ID can be pulled from the Twitter Search functionality or from the URL of the tweet.

Tweet ID of a Tweet from URL

Inputs

  • Tweet ID - The ID of the tweet from Twitter.