Question

crm integration with php sdk

  • 26 November 2015
  • 3 replies
  • 1724 views

  • Anonymous
  • 0 replies

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


3 replies

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

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

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:xampp3htdocs ingcentralvendor ingcentral ingcentral-phpsrcPlatformPlatform.php(310): RingCentralSDKHttpClient->send(Object(GuzzleHttpPsr7Request)) #1 C:xampp3htdocs ingcentralvendor ingcentral ingcentral-phpsrcPlatformPlatform.php(434): RingCentralSDKPlatformPlatform->sendRequest(Object(GuzzleHttpPsr7Request), Array) #2 C:xampp3htdocs ingcentralvendor ingcentral ingcentral-phpsrcPlatformPlatform.php(212): RingCentralSDKPlatformPlatform->requestToken('/restapi/oauth/...', Array) #3 C:xampp3htdocs ingcentraldemoindex.php(18): RingCentralSDKPlatformPlatform->login(Array, '101', 'GodlovesUs143') #4 {main}

Reply