ovh/php-ovh

Proxy support?

huglester opened this issue · 2 comments

Hello

any plans for Proxy support?

Hello,
There is no plan for implementing proxy support as of now.

I will leave this issue open if someone want to pick this up.

It is possible to specify a Client class with a proxy:

require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;
use GuzzleHttp\Client;    // Required

$http_client = new Client([
   'timeout' => 30,
   'connect_timeout' =>5,
   'proxy' => 'tcp://a.b.c.d:3128'
]);

$conn = new Api($application_key, $application_secret, $api_endpoint, $consumer_key, $http_client);

See API constructor and GuzzleHttp\Client Documentation for more information