Instagram\Instagram::setProxy PHP Метод

setProxy() публичный Метод

Set the HTTP Proxy to be used for Instagram API Requests
public setProxy ( $proxy, string $username = null, string $password = null )
$proxy string Proxy
$username string Proxy Username
$password string Proxy Password
    public function setProxy($proxy, $username = null, $password = null)
    {
        $this->proxy = $proxy;
        if ($username != null && $password != null) {
            $this->proxyCredentials = $username . ":" . $password;
        }
    }