twitter-v2 icon indicating copy to clipboard operation
twitter-v2 copied to clipboard

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.

Open crgoldsbury opened this issue 3 years ago • 1 comments

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".

crgoldsbury avatar Jan 10 '22 13:01 crgoldsbury

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

Ryan-McBride avatar Feb 20 '22 20:02 Ryan-McBride