egg-mode icon indicating copy to clipboard operation
egg-mode copied to clipboard

transitioning to the v2 API

Open QuietMisdreavus opened this issue 5 years ago • 6 comments

Last week Twitter announced the version 2 of their public API, which looks like a promotion of some of their "Labs" endpoints, plus some reimaginings of their API structure in general, into a new API surface. It seems like the launch of the API itself was delayed due to the security incident that also occurred last week, but it's worth tracking it as it means new work for egg-mode.

The first change i notice when looking at the Labs APIs is that they allow you to specify which fields you want to retrieve in the API call, which is great for extensibility but makes returning a statically-defined data structure (like we have been doing in egg-mode) difficult. On the other hand, this could also allow us to trim down our biggest structures, by (for example) returning only a screen name/ID for the author of a tweet instead of serializing the entire TwitterUser out.

I've yet to do a complete read-through of the current Labs APIs (not to mention whatever it will look like when they properly release the v2 API) but it does seem like there will be some rework that needs to happen to support them properly.

QuietMisdreavus avatar Jul 20 '20 23:07 QuietMisdreavus

Hey @QuietMisdreavus, thanks for the crate. Any updates on V2 API bindings?

ghost avatar Dec 03 '20 20:12 ghost

Just a heads up. Looks like V2 API has made it out of early access!

simonyangme avatar Nov 16 '21 18:11 simonyangme

I’m looking at starting a new Twitter bot and now v2 the only API an application has access to by default!

You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve

I applied for “Elevated” status and was immediately approved so it wasn’t a true obstacle, fortunately. Thanks for all the work on this, @QuietMisdreavus, love the project name too 🤓

ETA I was wrong re approval:

Your application for Elevated access is pending

backspace avatar Dec 22 '21 04:12 backspace

Any updates?

SaltySpaghetti avatar May 21 '22 10:05 SaltySpaghetti

This is not being actively worked on at the moment, though I would accept a PR.

adwhit avatar May 30 '22 09:05 adwhit

No Elevated access anymore. Twitter only has a Basic/Free/enterprise plan now. image

wd avatar Apr 03 '23 08:04 wd