Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Instagram
- {
- protected $username;
- protected $password;
- protected $debug;
- protected $uuid;
- protected $device_id;
- protected $username_id;
- /**
- * @var Settings
- */
- public $settings;
- protected $userAgent;
- protected $token;
- protected $isLoggedIn = false;
- protected $rank_token;
- protected $IGDataPath;
- /**
- * Default class constructor.
- *
- * @param string $username
- * Your Instagram username.
- * @param string $password
- * Your Instagram password.
- * @param $debug
- * Debug on or off, false by default.
- * @param $IGDataPath
- * Default folder to store data, you can change it.
- */
- public function __construct($username, $password, $debug = false, $IGDataPath = NULL)
- {
- $username = trim($username);
- $password = trim($password);
- $this->debug = $debug;
- $this->device_id = SignatureUtils::generateDeviceId(md5($username . $password));
- if (!is_null($IGDataPath)) {
- $this->IGDataPath = $IGDataPath;
- }
- else {
- $this->IGDataPath = Wow::get("project/cookiePath") . "instagram/";
- }
- $this->checkSettings($username);
- $this->setUser($username, $password);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement