$path = 'data/'.$file.'.json';
$fields = array();
- $data = $this->sentRequest($path, $fields, true);
+ $data = $this->sendRequest($path, $fields, true);
return $data['body'];
}
$path = 'data/resetAllSetting.json';
$fields = array('csrf_token' => 'nulltoken', 'showpw' => 0, 'password' => $this->hash, 'reset_all' => 'true');
- $data = $this->sentRequest($path, $fields, true);
+ $data = $this->sendRequest($path, $fields, true);
return $data['body'];
}
$path = 'data/checkfirmware.json';
$fields = array('checkfirmware' => 'true');
- $data = $this->sentRequest($path, $fields, true);
+ $data = $this->sendRequest($path, $fields, true);
return $data['body'];
}
$path = 'data/Reboot.json';
$fields = array('csrf_token' => $this->token, 'reboot_device' => 'true');
- $data = $this->sentEncryptedRequest($path, $fields, true);
+ $data = $this->sendEncryptedRequest($path, $fields, true);
$data = $this->getValues($data['body']);
if ($data['status'] == 'ok') {