question

bhagyashree-more8248 avatar image
bhagyashree-more8248 asked bhagyashree-more8248 answered

Webhook Setup Error: Invalid resource owner credentials

Hi Team

I am getting "Webhook Setup Error: Invalid resource owner credentials " this error.Please help me out to solve this problem.


developer sandbox
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

ak avatar image
ak answered
Bhagyashree,

When you are subscribing to Webhooks using the UI in the developer portal ( App -> Webhooks ) the Webhook URL must respond with the Validation-Token immediately. Please read below.


Enable Webhooks using UI:

When you enable Webhooks using the UI as shown below, your app need not Create a Subscription via Webhook instead respond immediately with a HTTP 200 and a Validation-Token in the header.



The Glip-Botman code that you are referring to is creating subscription inside the application, instead please make sure that when you 'Verify' the Webhook URL would have the below code:
<?php $callbackBody = file_get_contents('php://input');
$callbackSignature = getallheaders()['Validation-Token'];
header('Validation-Token: '. $callbackSignature); http_response_code(200);  

Invalid resource owner credentials :

You do not have to provide User Credentials when you are creating the Webhooks using UI. As shown above, your webhook URL would need to respond with a HTTP 200 and the Validation-Token. 

If you are creating an application of Type == Server/Bot, then I recommend you go through this tutorial for more information:
http://ringcentral-api-docs.readthedocs.io/en/latest/glip_bots/

If you are using the Glip-Botman library please use the branch ' Bot-provisioner'
https://github.com/ringcentral/glip-botman/tree/bot-provisioner

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bhagyashree-more8248 avatar image
bhagyashree-more8248 answered
I try my level best but when I am trying to verify my webhook url it's showing verification failed msg.
I using ngrok. Can u guide me to run index.php from my local machine.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

bhagyashree-more8248 avatar image
bhagyashree-more8248 answered
Solved  Invalid resource owner credentials  problem but now It giving " WebHook is not reachable".
Is there any mistake in this code then please guide me. 



1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys