News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Webhook Setup Error: Invalid resource owner credentials
Tags: developer sandbox
Dec 29, 2017 at 6:20am   •   3 replies  •  0 likes
bhagyashree-more

Hi Team

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


3 Answers
answered on Dec 30, 2017 at 12:44pm  
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. 




 0
answered on Dec 30, 2017 at 6:45am  
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.

 0
answered on Dec 29, 2017 at 9:27am  
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



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us