Пример #1
0
 /**
  * @param $snapchat Snapchat The Snapchat instance to make the Request with.
  */
 public function __construct($snapchat)
 {
     parent::__construct();
     $this->addHeader("Accept-Language", "en");
     $this->addHeader("Accept-Locale", "en_US");
     $this->setSnapchat($snapchat);
     $this->setProxy($snapchat->getProxy());
     $this->setVerifyPeer($snapchat->shouldVerifyPeer());
 }
Пример #2
0
 public function __construct($snapchat, $username, $password, $pre_auth_token = null)
 {
     parent::__construct();
     $this->snapchat = $snapchat;
     $this->setProxy($this->snapchat->getProxy());
     $this->setVerifyPeer($this->snapchat->shouldVerifyPeer());
     $this->username = $username;
     $this->password = $password;
     $this->pre_auth_token = $pre_auth_token;
 }