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