Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

Any plan to support APIv2 response? #140

@YOCKOW

Description

@YOCKOW

<twitter-status> takes a single value status that must be the full response of GET statuses/show/:id with the parameters include_entities=true and tweet_mode=extended.

As the document says, we can't use the response of APIv2 (e.g. GET /2/tweets)
Is there any plan to support APIv2?

Example for tweet ID 20 from APIv2
{
   "data":[
      {
         "author_id":"12",
         "conversation_id":"20",
         "possibly_sensitive":false,
         "public_metrics":{
            "retweet_count":122191,
            "reply_count":10828,
            "like_count":179563,
            "quote_count":19323
         },
         "id":"20",
         "created_at":"2006-03-21T20:50:14.000Z",
         "lang":"en",
         "reply_settings":"everyone",
         "text":"just setting up my twttr",
         "source":"Twitter Web Client"
      }
   ],
   "includes":{
      "users":[
         {
            "verified":true,
            "entities":{
               "description":{
                  "hashtags":[
                     {
                        "start":0,
                        "end":8,
                        "tag":"bitcoin"
                     }
                  ]
               }
            },
            "name":"jack",
            "protected":false,
            "id":"12",
            "created_at":"2006-03-21T20:50:14.000Z",
            "pinned_tweet_id":"1247616214769086465",
            "description":"#bitcoin",
            "profile_image_url":"https://pbs.twimg.com/profile_images/1115644092329758721/AFjOr-K8_normal.jpg",
            "public_metrics":{
               "followers_count":6433546,
               "following_count":4579,
               "tweet_count":28623,
               "listed_count":32977
            },
            "url":"",
            "username":"jack"
         }
      ]
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions