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

Any plan to support APIv2 response? #140

Open
YOCKOW opened this issue Aug 31, 2022 · 1 comment
Open

Any plan to support APIv2 response? #140

YOCKOW opened this issue Aug 31, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@YOCKOW
Copy link

YOCKOW commented Aug 31, 2022

<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"
         }
      ]
   }
}
@abraham
Copy link
Owner

abraham commented Sep 17, 2022

I would like to support v2 formats but haven't had time to work on it yet.

@abraham abraham added the enhancement New feature or request label Sep 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants