twitter-v2
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.
Twitter gives you 5 values:
- Access Key
- Access token secret
- Bearer token
- API Key
- API Secret
This code completely ignores #3 above ( bearer token ) and when you run without that values in the sample it just returns "unauthorized".
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