consumerRequest instanceof HTTP_OAuth_Consumer_Request) { $this->consumerRequest = new HTTP_OAuth_Consumer_Request; } // TODO: Change this and add in code to validate the SSL cert. // see https://github.com/bagder/curl/blob/master/lib/mk-ca-bundle.pl $this->consumerRequest->setConfig(array( 'ssl_verify_peer' => false, 'ssl_verify_host' => false )); return $this->consumerRequest; } }