Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access permission issue #37

Open
aihoom opened this issue Nov 15, 2023 · 3 comments
Open

Access permission issue #37

aihoom opened this issue Nov 15, 2023 · 3 comments

Comments

@aihoom
Copy link

aihoom commented Nov 15, 2023

Thank you for developing the Twitter bot, which allows me to quickly get started with such a great tool without any programming background. However, it seems that some problems have occurred during my use:

warning: `tweet_bot` (bin "tweet_bot") generated 3 warnings
    Finished release [optimized] target(s) in 5m 08s
     Running `target/release/tweet_bot`
Error: TweetError { kind: TweetError(TwitterError({"perf": "7626143928", "content-type": "application/json;charset=utf-8", "cache-control": "no-cache, no-store, max-age=0", "content-length": "311", "x-transaction-id": "3fccce770c5517c1", "x-response-time": "161", "x-connection-hash": "c35e1e9e80bfb05113707e47427cead188bfcd45", "date": "Wed, 15 Nov 2023 22:29:18 GMT", "server": "tsa_k"}, TwitterErrors { errors: [TwitterErrorCode { message: "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", code: 453 }] })), location: Location { file: "src/utils.rs", line: 6, col: 33 } }

I searched and it seems to be because the free Twitter API V2 I'm using doesn't have this permission. Can I use API V1 instead?

@dracarys18
Copy link
Owner

Hi @aihoom. Twitter APIv2 is not supported by this bot it still runs on APIv1. Since Twitter has made their APIs paid I am not really getting interest to update this to APIv2

@aihoom
Copy link
Author

aihoom commented Nov 17, 2023

I took a look at the Twitter API2 documentation, and it seems that free developer accounts require authorization to fetch data from specific users. However, I still appreciate you for developing such a useful application

@rumblersull
Copy link

There is an Oauth file and secret which can be generated on twitter with a free account. This should let tweets be pulled with a free account but this authentication is not included in the .env file. Can the code be modified to accomplish this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants