I’m trying to use some twitter API endpoints.This is my twitter app configuration :
- ELEVATED Access
- OAuth 1.0a turned on
- Read and write permissions For the NodeJS project I’m using :
- twitter(^1.7.1) , npm library to create a twitter client. After adding the correct consumer key and consumer secret keys,
client = new Twitter({
consumer_key: process.env.CONSUMER_KEY,
consumer_secret: process.env.CONSUMER_SECRET,
access_token_key: req.body.ACCESS_TOKEN_KEY,
access_token_secret: req.body.ACCESS_TOKEN_SECRET,
I’m always getting this error :
[ { code: 32, message: 'Could not authenticate you.' } ]
Do the same credentials work if you make a call with twurl for example? GitHub - twitter/twurl: OAuth-enabled curl for the Twitter API