public function __construct($instagram)
{
parent::__construct();
//$this->addHeader("Accept-Encoding", Constants::ACCEPT_ENCODING);
$this->addHeader("Accept-Language", Constants::ACCEPT_LANGUAGE);
$this->addHeader("X-IG-Capabilities", Constants::IG_CAPABILITIES);
$this->addHeader("X-IG-Connection-Type", Constants::IG_CONNECTION_TYPE);
$this->addHeader("User-Agent", Constants::USER_AGENT);
$this->setInstagram($instagram);
$this->setProxy($instagram->getProxy());
$this->setProxyCredentials($instagram->getProxyCredentials());
$this->setVerifyPeer($instagram->shouldVerifyPeer());
}