__construct() public method

public __construct ( $instagram )
$instagram Instagram The Instagram instance to make the Request with.
 /**
  * @param $instagram Instagram
  * @param $maxId string The Maximum Id for fetching more Items in the Feed
  */
 public function __construct($instagram, $maxId = null)
 {
     parent::__construct($instagram);
     if (!empty($maxId)) {
         $this->addParam("max_id", $maxId);
     }
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Media Id
  * @param $comment string Comment
  */
 public function __construct($instagram, $mediaId, $comment)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
     //TODO: Add Parameters to Signed Body 'user_breadcrumb' and 'idempotence_token'
     $this->setSignedBody(array("comment_text" => $comment, "_csrftoken" => $instagram->getCSRFToken(), "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID()));
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Media Id
  * @param $mediaType string Media Type
  */
 public function __construct($instagram, $mediaId, $mediaType)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
     $this->mediaType = $mediaType;
     $this->setSignedBody(array("media_id" => $mediaId, "_csrftoken" => $instagram->getCSRFToken(), "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID()));
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Id of Media to Edit
  * @param $caption string Caption
  */
 public function __construct($instagram, $mediaId, $caption = null)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
     $caption = $caption != null ? $caption : "";
     $this->setSignedBody(array("caption_text" => $caption, "_csrftoken" => $instagram->getCSRFToken(), "usertags" => json_encode(array("in" => array())), "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID(), "location" => "{}"));
 }
 /**
  * @param $instagram Instagram
  */
 public function __construct($instagram)
 {
     parent::__construct($instagram);
     $this->addParam("guid", $instagram->getGUID());
     $this->addParam("_uuid", $instagram->getUUID());
     $this->addParam("phone_id", $instagram->getPhoneId());
     $this->addParam("_csrftoken", $instagram->getCSRFToken());
 }
 /**
  * @param $instagram Instagram
  * @param $uploadId string Upload Id
  * @param $path string File Path of the Photo that was Uploaded
  * @param $caption string Caption for this Photo
  */
 public function __construct($instagram, $uploadId, $path, $caption = null)
 {
     parent::__construct($instagram);
     list($width, $height) = getimagesize($path);
     $caption = $caption != null ? $caption : "";
     $date = date("Y:m:d H:i:s");
     $this->setSignedBody(array("camera_model" => DeviceConstants::CAMERA_MODEL, "_csrftoken" => $instagram->getCSRFToken(), "source_type" => self::SOURCE_TYPE_CAMERA, "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID(), "caption" => $caption, "date_time_original" => $date, "date_time_digitalized" => $date, "upload_id" => $uploadId, "camera_make" => DeviceConstants::CAMERA_MAKE, "device" => array("manufacturer" => DeviceConstants::MANUFACTURER, "model" => DeviceConstants::MODEL, "android_version" => DeviceConstants::ANDROID_VERSION, "android_release" => DeviceConstants::ANDROID_RELEASE), "edits" => array("crop_original_size" => array($width, $height), "crop_center" => array(0.0, -0.0), "crop_zoom" => 1.3333334), "extra" => array("source_width" => $width, "source_height" => $height)));
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Media Id
  * @param $maxId string The Maximum Id for fetching more Comments
  */
 public function __construct($instagram, $mediaId, $maxId = null)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
     if ($maxId != null) {
         $this->addParam("max_id", $maxId);
     }
 }
 /**
  * @param $instagram Instagram
  * @param $query string Query
  */
 public function __construct($instagram, $query)
 {
     parent::__construct($instagram);
     $this->addParam("timezone_offset", Constants::TIMEZONE_OFFSET);
     $this->addParam("q", $query);
     $this->addParam("count", "50");
     $this->addParam("rank_token", $instagram->getUserRankToken());
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Media Id
  */
 public function __construct($instagram, $mediaId)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
     $this->setSignedBody(array("module_name" => "feed_timeline", "media_id" => $mediaId, "_csrftoken" => $instagram->getCSRFToken(), "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID()));
     //Tap Heart Icon = 0
     //Double tap Photo = 1
     $this->addParam("d", "1");
 }
 /**
  * @param $instagram Instagram
  * @param $locationId string Location Id to load the Feed of
  * @param $maxId string The Maximum Id for fetching more Items in the Feed
  */
 public function __construct($instagram, $locationId, $maxId = null)
 {
     parent::__construct($instagram);
     $this->locationId = $locationId;
     $this->addParam("rank_token", $instagram->getRankToken());
     if (!empty($maxId)) {
         $this->addParam("max_id", $maxId);
     }
 }
 /**
  * @param $instagram Instagram
  * @param $maxId string The Maximum Id for fetching more Items in the Feed
  */
 public function __construct($instagram, $maxId = null)
 {
     parent::__construct($instagram);
     $this->addParam("phone_id", $instagram->getPhoneId());
     $this->addParam("timezone_offset", Constants::TIMEZONE_OFFSET);
     $this->addHeader("X-Google-AD-ID", $instagram->getGoogleAdId());
     if (!empty($maxId)) {
         $this->addParam("max_id", $maxId);
     }
 }
 /**
  * @param $instagram Instagram
  * @param $path string File Path of the Photo to Upload
  */
 public function __construct($instagram, $path)
 {
     parent::__construct($instagram);
     $uploadId = number_format(round(microtime(true) * 1000), 0, '', '');
     $this->addParam("_csrftoken", $instagram->getCSRFToken());
     $this->addParam("_uuid", $instagram->getUUID());
     $this->addParam("upload_id", $uploadId);
     $this->addParam("image_compression", json_encode(array("lib_name" => "jt", "lib_version" => "1.3.0", "quality" => "70")));
     $this->addFile("photo", new RequestFile($path, "application/octet-stream", sprintf("pending_media_%s.jpg", $uploadId)));
 }
 /**
  * @param $instagram Instagram
  * @param $firstname string Name
  * @param $email string Email
  * @param $phoneNumber string Phone Number
  * @param $gender int Gender
  * @param $biography string Biography
  * @param $externalUrl string External Url
  */
 public function __construct($instagram, $firstname, $email, $phoneNumber, $gender, $biography, $externalUrl)
 {
     parent::__construct($instagram);
     $firstname = $firstname != null ? $firstname : "";
     $email = $email != null ? $email : "";
     $phoneNumber = $phoneNumber != null ? $phoneNumber : "";
     $gender = $gender != null ? $gender : User::GENDER_NOT_SPECIFIED;
     $biography = $biography != null ? $biography : "";
     $externalUrl = $externalUrl != null ? $externalUrl : "";
     $this->setSignedBody(array("external_url" => $externalUrl, "gender" => $gender, "phone_number" => $phoneNumber, "_csrftoken" => $instagram->getCSRFToken(), "username" => $instagram->getLoggedInUser()->getUsername(), "first_name" => $firstname, "_uid" => $instagram->getLoggedInUser()->getPk(), "biography" => $biography, "_uuid" => $instagram->getUUID(), "email" => $email));
 }
 /**
  * @param $instagram Instagram
  * @param $userId string User Id
  * @param $maxId string The Maximum Id for fetching more Followers
  */
 public function __construct($instagram, $userId, $maxId = null)
 {
     parent::__construct($instagram);
     $this->userId = $userId;
     $this->addParam("module", "overview");
     $this->addParam("support_new_api", "true");
     $this->addParam("rank_token", $instagram->getRankToken());
     if ($maxId != null) {
         $this->addParam("max_id", $maxId);
     }
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Media Id
  * @param $commentIds array Comment Ids to Delete
  */
 public function __construct($instagram, $mediaId, $commentIds)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
     $this->setSignedBody(array("comment_ids_to_delete" => implode(",", $commentIds), "_csrftoken" => $instagram->getCSRFToken(), "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID()));
 }
 /**
  * @param $instagram Instagram
  */
 public function __construct($instagram)
 {
     parent::__construct($instagram);
     $this->addParam("edit", "true");
 }
 /**
  * @param $instagram Instagram
  * @param $userId string User Id to load the Feed of
  */
 public function __construct($instagram, $userId)
 {
     parent::__construct($instagram);
     $this->userId = $userId;
 }
 /**
  * @param $instagram Instagram
  * @param $userId string User Id
  */
 public function __construct($instagram, $userId)
 {
     parent::__construct($instagram);
     $this->userId = $userId;
     $this->setSignedBody(array("_csrftoken" => $instagram->getCSRFToken(), "user_id" => $userId, "_uid" => $instagram->getLoggedInUser()->getPk(), "_uuid" => $instagram->getUUID()));
 }
 /**
  * @param $instagram Instagram
  */
 public function __construct($instagram)
 {
     parent::__construct($instagram);
     $this->addParam("timezone_offset", Constants::TIMEZONE_OFFSET);
     $this->addParam("count", "50");
 }
 /**
  * @param $instagram Instagram
  * @param $path string File Path of the Profile Picture to Upload
  */
 public function __construct($instagram, $path)
 {
     parent::__construct($instagram);
     $this->setSignedBody(array("_csrftoken", $instagram->getCSRFToken(), "_uid", $instagram->getLoggedInUser()->getPk(), "_uuid", $instagram->getUUID()));
     $this->addFile("profile_pic", new RequestFile($path, "application/octet-stream", "profile_pic"));
 }
 /**
  * @param $instagram Instagram
  * @param $mediaId string Media Id to load the Info of
  */
 public function __construct($instagram, $mediaId)
 {
     parent::__construct($instagram);
     $this->mediaId = $mediaId;
 }