egg-mode-rs / egg-mode

a twitter api crate for rust
https://crates.io/crates/egg-mode
Mozilla Public License 2.0
371 stars 65 forks source link

transitioning to the v2 API #105

Open QuietMisdreavus opened 4 years ago

QuietMisdreavus commented 4 years ago

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.

ghost commented 3 years ago

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

simonyangme commented 2 years ago

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

backspace commented 2 years ago

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

SaltySpaghetti commented 2 years ago

Any updates?

adwhit commented 2 years ago

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

wd commented 1 year ago

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

image