Replies: 1 comment
-
Fixed! Testing many code versions, I inserted bad params. Here are the correct ones:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an Essential account.
I created read-write keys correctly: they work with Postman so I am sure they are ok!
If I create a small code in NodeJS, I get always forbidden errors
I pass the keys by .env. Even if I put them directly in the code, I get the same errors.
` const {TwitterApi} = require("twitter-api-v2");
OUTPUT
data: { title: 'Unauthorized', type: 'about:blank', status: 401, detail: 'Unauthorized'
I have the same output with:
const me=await rwClient.v2.tweet('twitter-api-v2 is awesome!');
How can I check what twitter-api-v2 is sending ?
Beta Was this translation helpful? Give feedback.
All reactions