Following https://dev.twitter.com/webhooks/reference/post/account_activity/webhooks
Using consumer key and secret that matches the right development and all that jazz.
I can do other REST requests with the same TWITTER:Rest::Client instance. So configuration is not an issue.
When I try to do this
::Twitter::REST::Request.new(instance, ‘post’, ‘/1.1/account_activity/webhooks.json’, {url: ‘https://8766f276.ngrok.io/webhook’})
All I get is
Puma caught this error: Webhook URL does not meet the requirements. Please consult: https://dev.twitter.com/webhooks/securing (Twitter::Error::BadRequest)
That URL is valid AFAIK. I know the next step is to do the CRC check like explained here https://dev.twitter.com/webhooks/securing
but I am not receiving that request, it’s just throwing an exception. No other request is ever received.
What is twitter expecting for the URL? I’m at my wits end trying to figure this out…