Skip to main content

Im tying to use the PHP-SDK to upload a greeting, I installed the SDK but Im getting error 500 every time I use any script. If I just have a basic PHP page, they load fine. Is there a way of testing the installation of the SDK?

I found the logs and this is the error

[11-Jul-2022 14:50:38 America/Los_Angeles] PHP Fatal error: Uncaught GuzzleHttpExceptionRequestException: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://platform.devtest.ringcentral.com/restapi/oauth/token in C:SNCphpvendorguzzlehttpguzzlesrcHandlerCurlFactory.php:211

how to a get around this problem?


I believe that the problem is related to the TLS required change.

Here is a couple of links that may help. But you can search from the Internet for more help.

https://laracasts.com/discuss/channels/laravel/guzzlehttp-exception-requestexception-curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate-see-httpcurlhaxxselibcurlclibcurl-errorshtml

https://stackoverflow.com/questions/35638497/curl-error-60-ssl-certificate-prblm-unable-to-get-local-issuer-certificate


thanks, that worked, now I have a more basic PHP issue. Im not a pro at PHP, but Im trying. Im trying to get basic extension information working. I got this code from the 'try it now' I get no errors and a blank page, I assume I need more code to view the response.

require('vendor/autoload.php');
$rcsdk = new RingCentralSDKSDK($client_id, $client_secret, RingCentralSDKSDK::SERVER_SANDBOX);$platform = $rcsdk->platform();
$platform->login($Accountnumber, $extension, $pw);
$r = $platform->get("/restapi/v1.0/account/{$accountId}/extension", $queryParams);
// PROCESS RESPONSE

I tried to add this code , but it still comes back blank

foreach ($r as $value){ 
echo "value " .$value . "
";
}

any help would be much appreciated.


Reply