public function ingestInput($vars, $skipValidate = false)
 {
     parent::ingestInput($vars, $skipValidate);
     //Prep file upload data
     if (isset($this->api_vars["file"])) {
         $this->method = "uploadFile";
         $this->endpoint = $this->job;
         if (!isset($this->api_vars["brand_name"])) {
             $this->api_vars["brand_name"] = $this->account->getName();
             if ($this->api_vars["brand_name"] == null) {
                 CliScriptAbstract::confirm("You need to provide a brand if you are not using a preconfigured account.\nContinue anyway?", "Add the '-h' option for more details on valid inputs.");
                 $this->api_vars["brand_name"] = "unknown";
             }
         }
         if (CliScriptAbstract::$flags["isValidateFile"]) {
             $this->api_vars["is_skip_check"] = true;
         }
     }
     //Correctly manage updates.
     if (isset($this->api_vars["vars"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["vars"] = $this->api_vars["vars"];
         unset($this->api_vars["vars"]);
     }
     if (isset($this->api_vars["lists"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["lists"] = $this->api_vars["lists"];
         unset($this->api_vars["lists"]);
     }
     if (isset($this->api_vars["optout"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["optout"] = $this->api_vars["optout"];
         unset($this->api_vars["optout"]);
     }
     if (isset($this->api_vars["delete_vars"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $tmp = explode(",", $this->api_vars["delete_vars"]);
         foreach ($tmp as $i => $c) {
             $tmp[$i] = trim($c);
         }
         $this->api_vars["update"]["delete_vars"] = $tmp;
         unset($this->api_vars["delete_vars"]);
     }
     if (isset($this->api_vars["signup_date"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["signup_date"] = $this->api_vars["signup_date"];
         unset($this->api_vars["signup_date"]);
     }
 }
 public function ingestInput($vars, $skipValidate = false)
 {
     parent::ingestInput($vars, $skipValidate);
     if (isset($this->api_vars["file"])) {
         $this->method = "uploadFile";
         $this->endpoint = $this->job;
         $this->api_vars["file_type"] = "json";
         if (!isset($this->api_vars["brand_name"])) {
             $this->api_vars["brand_name"] = $this->account->getName();
             if ($this->api_vars["brand_name"] == null) {
                 CliScriptAbstract::confirm("You need to provide a brand if you are not using a preconfigured account.\nContinue anyway?", "Add the '-h' option for more details on valid inputs.");
                 $this->api_vars["brand_name"] = "unknown";
             }
         }
     }
 }
 public function ingestInput($vars, $skipValidate = false)
 {
     parent::ingestInput($vars, $skipValidate);
     //Correctly manage updates.
     if (isset($this->api_vars["vars"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["vars"] = $this->api_vars["vars"];
         unset($this->api_vars["vars"]);
     }
     if (isset($this->api_vars["lists"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["lists"] = $this->api_vars["lists"];
         unset($this->api_vars["lists"]);
     }
     if (isset($this->api_vars["optout"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["optout"] = $this->api_vars["optout"];
         unset($this->api_vars["optout"]);
     }
     if (isset($this->api_vars["delete_vars"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $tmp = explode(",", $this->api_vars["delete_vars"]);
         foreach ($tmp as $i => $c) {
             $tmp[$i] = trim($c);
         }
         $this->api_vars["update"]["delete_vars"] = $tmp;
         unset($this->api_vars["delete_vars"]);
     }
     if (isset($this->api_vars["signup_date"])) {
         if (!isset($this->api_vars["update"])) {
             $this->api_vars["update"] = array();
         }
         $this->api_vars["update"]["signup_date"] = $this->api_vars["signup_date"];
         unset($this->api_vars["signup_date"]);
     }
 }
 public function ingestInput($vars, $skipValidate = false)
 {
     parent::ingestInput($vars, $skipValidate);
     //Prep file upload data
     if (isset($this->api_vars["file"])) {
         $this->method = "uploadFile";
         $this->endpoint = $this->job;
         if (!isset($this->api_vars["brand_name"])) {
             $this->api_vars["brand_name"] = $this->account->getName();
             if ($this->api_vars["brand_name"] == null) {
                 CliScriptAbstract::confirm("You need to provide a brand if you are not using a preconfigured account.\nContinue anyway?", "Add the '-h' option for more details on valid inputs.");
                 $this->api_vars["brand_name"] = "unknown";
             }
         }
         if (CliScriptAbstract::$flags["isValidateFile"]) {
             $this->api_vars["is_skip_check"] = true;
         }
         if (!isset($this->api_vars["file_type"])) {
             $this->api_vars["file_type"] = "json";
         }
     } else {
         echo "This isn't supported. How did you get here?\n\nSERIOUSLY!!!???\n\n";
     }
 }