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

This doesn't work. Twitter API gives you 5 values. You only have variables for 4 of them. Get 'unauthorized' when trying to use values you suggest. #97

Open
crgoldsbury opened this issue Jan 10, 2022 · 1 comment

Comments

@crgoldsbury
Copy link

Twitter gives you 5 values:

  1. Access Key
  2. Access token secret
  3. Bearer token
  4. API Key
  5. API Secret

This code completely ignores #3 above ( bearer token ) and when you run without that values in the sample it just returns "unauthorized".

@Ryan-McBride
Copy link

The twitter v2 api doesn't seem to actually need the Bearer token to publish a tweet, there's just something broken in this library.

If you use https://github.com/plhery/node-twitter-api-v2 instead, it works pretty much exactly how you'd expect

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

2 participants