Account Activity API Access

account-activity

#1

I recently got approved for the account activity api, and attempted to access:

POST https://api.twitter.com/1.1/account_activity/all/env-beta/webhooks.json

but received the following error:

215: Bad Authentication Data error.

Used the keys associated with app id 14366324. Please assist.

Here is the request:

var request_options = {
  url:
    'https://api.twitter.com/1.1/account_activity/all/env-beta/webhooks.json',
  oauth: twitter_oauth,
  headers: {
    'Content-type': 'application/x-www-form-urlencoded'
  },
  form: {
    url: 'https://[...]/webhooks/twitter'
  }
}

request.post(request_options, function(error, response, body) {
  console.log(response.toJSON())
})

#2

Did you generate a new token after you were whitelisted?


#3

I don’t believe so. I created a test app, but that is separate.