sopel-irc / sopel-twitter

A Twitter plugin for Sopel
Other
2 stars 5 forks source link

Update for Twitter API v2 #23

Closed dgw closed 1 year ago

dgw commented 3 years ago

Twitter's v2 API is still in early access, and not all features needed for this plugin to work completely are available yet.

I'm opening this PR mostly to show the current state of work, both here and on Twitter's end. Media and quoted-tweet expansion are the pain points right now.

Before this PR is considered "ready", it should also handle taking old consumer/secret keys stored in the config file and creating a Bearer Token with them (then updating the config file accordingly). This hasn't been implemented yet, either, but it's why the current PR does not remove those config values.

ejstacey commented 2 years ago

Twitter only allows us to create v2 api accounts now :(. I guess I'm stuck until this is finished/merged?

edit: remembered I had a v1 api account on another account, so I was able to piggyback on that one for now.

dgw commented 2 years ago

Ugh, isn't that just like Twitter? 😑 Thanks for the heads-up. Will try to slot working on this in after I finish some minor overhauls on the sopel-github plugin.

dgw commented 2 years ago

I have done some work on this today, and the tweet fetching is more or less ready. Users/.twitinfo doesn't work yet; still need to update that to the new API version (or decide to drop the feature).

@ejstacey If you want to help test/fix things, pip install -e using the test-merge-v2 branch.

dgw commented 1 year ago

Not that much was happening here, but I am now officially stopping work on this migration due to #40.