lowczarc / rust_twitter_bot_lib

🤖 A Rust lib for Twitter Bot creation
12 stars 0 forks source link

Change twitter url to v2! #1

Open dxphilo opened 1 month ago

dxphilo commented 1 month ago

I was toying around with this lib and thanks for publishing it!

While setting my environment, I came across the error Err(TwitterBotError("You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product"))

It looks like twitter has changed the url to /v2/tweets according to some discussions here.

It would be nice if the change is reflected in the lib. or provide an Option for providing a different URL.

Thanks, Phil.

lowczarc commented 1 month ago

I'm not really maintaining this lib anymore and I didn't buy the twitter/X API access so I wouldn't be able to test it :/

If you can make a PR I will merge it. But frankly I don't know if I would recommend using a lib where the maintainer cannot even test their code lol

dxphilo commented 1 month ago

Thanks for getting back on this.

I cloned your lib and made some changes locally and got it working.

If I find other use cases, I might reach out and make changes and maybe add some test.

Thanks for the code it saved me some time. 👏