mautic / api-library

Mautic API Library
MIT License
180 stars 124 forks source link

Auth API supports for Curl CURLOPT_PROXY option #319

Open benoitrambaud opened 8 months ago

benoitrambaud commented 8 months ago

Hi,

For those who need to make Mautic API calls behind a proxy server, here is a code update for the AbstractAuth class. This simply adds support for the Curl CURLOPT_PROXY option.

(see mautic.zip)

Usage :

$initAuth = new ApiAuth(); $auth = $initAuth->newAuth($settings); $auth->setCurlProxyUrl("https://myproxy.net:8888");

+++ Benoit