Solved

Webhook Notifications Ruby Quick Start doesn't work

  • 26 September 2019
  • 1 reply
  • 257 views

Hello,

I am following exactly the instructions at https://developers.ringcentral.com/guide/notifications/quick-start/webhook/ruby

The authorization line works:

rc.authorize(username: RINGCENTRAL_USERNAME, extension: RINGCENTRAL_EXTENSION, password: RINGCENTRAL_PASSWORD)

But when I want to POST it fails:

    r = rc.post('/restapi/v1.0/subscription', payload: {
        eventFilters: ['/restapi/v1.0/account/~/extension/~/message-store/instant?type=SMS'],
        deliveryMode: { transportType: 'WebHook', address: DELIVERY_ADDRESS }
    })

I get this:

RestClient::BadRequest: 400 Bad Request

Any idea why this is happening?

Thanks

icon

Best answer by RingCentral1192835064 27 September 2019, 09:49

View original

1 reply

I found the problem. I was using an old version of the ringcentral-sdk gem. Now updated to 0.9.4 and it works.

Reply