Skip to main content

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: t'/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

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