I’m having some authentication issues with registering a webhook in node.js. My account is approved for using the Account Activity API.
I’ve setup my node scripts and am porting localhost through ngrok. Using Twitter’s Account Activity Dashboard, I can create, validate, and delete a webhook no problem. However, I want to create the webhook programmatically using curl.
I’m using the exact curl command from the ‘Create new webhook’ section of the docs, but with my Consumer API Key and Access Token. Every time it throws a ‘code: 215 Bad Authentication Data’.
I also setup a POST request on postman using the OAuth 1.0 settings with appropriate variables and URL. This still throws an authentication error:
{
"errors": [
{
"code": 32,
"message": "Could not authenticate you."
}
]
}
This all points to an issue with the information I’m copying over from my Twitter App’s ‘Keys and Permissions’. However, those exact same strings work perfectly in the Account Activity Dashboard app.
I’m not sure where to go from here. Any suggestions on next steps?