public function validateSslCertificate($client) {
        $response = $client->request('GET', 'https://api.twilio.com:8443');

        if ($response->getStatusCode() < 200 || $response->getStatusCode() > 300) {
            throw new TwilioException("Failed to validate SSL certificate");
        }
    }
public function validateSslCertificate($client) {
        $response = $client->request('GET', 'https://api.twilio.com:8443');

        if ($response->getStatusCode() < 200 || $response->getStatusCode() > 300) {
            throw new TwilioException("Failed to validate SSL certificate");
        }
    }
public function validateSslCertificate ( $ client ) { $ response = $ client -> request ( 'GET' , 'https://api.twilio.com:8443' ) ; if ( $ response -> getStatusCode ( ) < 200 || $ response -> getStatusCode ( ) > 300 ) { throw new TwilioException ( "Failed to validate SSL certificate" ) ; } }
Validates connection to new SSL certificate endpoint

@param CurlClient $client
@throws TwilioException if request fails
Validates connection to new SSL certificate endpoint