HI all try create webhook for receiving calls using javascript sdk, but i got Error: Parameter [request] value is invalid
This is my following code
var _eventFilters = [];
_eventFilters.push('/restapi/v1.0/account/~/extension/' + 101 + '/presence?detailedTelephonyState=true&aggregated=true')
rcsdk.platform()
.send({
method: 'POST', url: '/subscription', eventFilters: _eventFilters, deliveryMode: { "transportType": "WebHook", "encryption": false, "address": "https://33d7f758.ngrok.io/RingCentralTest/RcTest"; } }) .then(function (apiResponse) { console.log(apiResponse.json()) }) .catch(function (e) { console.log(e) });
Thanks in Advance