I was trying to lookup carrier of a phone number using Twilio PHP SDK. However, I was getting certification error. I am not sure what I am doing wrong. If anyone can give me advice, I really appreciate! Thank you.
$lookup_client = new Lookups_Services_Twilio( $this->twilio_sid, $this->twilio_token );
$number = $lookup_client->phone_numbers->get(
'1-416-333-1111',
array(
'Type' => 'carrier',
"CountryCode" => "US",
)
);
echo $number->carrier;
Services_Twilio_TinyHttpException: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in twilio-php\Services\Twilio\TinyHttp.php on line 119