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
crm integration with php sdk
Tags: sdk
Nov 26, 2015 at 5:46am   •   2 replies  •  0 likes
naresh-khuriwal

i am new in ringcentral . any one help me integrate ringcentral with my crm for click to call process my crm is develop in php , i have already setup php sdk , but how can integrate crm with ring for click to call

2 Answers
answered on Jan 20, 2021 at 7:10am  

I got error like this Exception: Unauthorized for this grant type SDK HTTP Error at https://platform.devtest.ringcentral.com/restapi/oauth/token Response text: { "error" : "unauthorized_client", "errors" : [ { "errorCode" : "OAU-251", "message" : "Unauthorized for this grant type" } ], "error_description" : "Unauthorized for this grant type" } Previous: Response has unsuccessful status #0 C:\xampp3\htdocs\ringcentral\vendor\ringcentral\ringcentral-php\src\Platform\Platform.php(310): RingCentral\SDK\Http\Client->send(Object(GuzzleHttp\Psr7\Request)) #1 C:\xampp3\htdocs\ringcentral\vendor\ringcentral\ringcentral-php\src\Platform\Platform.php(434): RingCentral\SDK\Platform\Platform->sendRequest(Object(GuzzleHttp\Psr7\Request), Array) #2 C:\xampp3\htdocs\ringcentral\vendor\ringcentral\ringcentral-php\src\Platform\Platform.php(212): RingCentral\SDK\Platform\Platform->requestToken('/restapi/oauth/...', Array) #3 C:\xampp3\htdocs\ringcentral\demo\index.php(18): RingCentral\SDK\Platform\Platform->login(Array, '101', 'GodlovesUs143') #4 {main}


 0
answered on Nov 30, 2015 at 4:03pm  
Hello Naresh,

First, allow me to welcome you to the RingCentral Developer Community!

We have useful resources available to explain and demonstrate with code how to use Click to Call using either the URI Scheme or RingOut functionality:
Please be aware that the PHP SDK has some limitations relating to the Subscription resource of the RingCentral API which could potentially be a blocker for using it in your CRM integration if you plan on subscribing to an extensions events for a use-case such as a "screen pop" in your CRM. If you know you'll need this functionality, you may want to consider using the JavaScript SDK which has full support for Subscriptions in addition to all other platform functionality.

The first thing you'll need to do is to create an interface within your CRM to permit a RingCentral user the ability to authenticate (you'll want to use the 3-Legged OAuth). Once the operator has authenticated (via your CRM) into their RingCentral account, your application will have obtained a valid access token which can be used to execute calls (such as RingOut) from within your CRM application to the RingCentral API of your choosing.

Does this answer your question?

Thanks,
Benjamin

 1
on Jan 20, 2021 at 6:42am   •  0 likes

Hi Benjamin , I have the question Its running for localhost with sandbox api?



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