diff --git a/composer.json b/composer.json index 8cd3b3f..c1a64bf 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "license": "GPL-3.0-or-later", "require": { "php": "^7||^8", + "ext-curl": "*", "ext-simplexml": "*" }, "require-dev": { diff --git a/src/OxxaAPI.php b/src/OxxaAPI.php index 79d2205..a4dc1a1 100644 --- a/src/OxxaAPI.php +++ b/src/OxxaAPI.php @@ -343,6 +343,14 @@ public function DOMAIN_CHECK(array $arguments=[]){ return $this->fetchCommandWithCredentials('domain_check',$arguments); } + /** + * @param array $arguments + * @return mixed + */ + public function DOMAIN_CHECKNEW(array $arguments=[]){ + return $this->fetchCommandWithCredentials('domain_checknew',$arguments); + } + /** * @param array $arguments * @return mixed @@ -452,6 +460,14 @@ public function DOMAIN_UPD(array $arguments=[]){ return $this->fetchCommandWithCredentials('domain_upd',$arguments); } + /** + * @param array $arguments + * @return mixed + */ + public function EXTENSION_LIST(array $arguments=[]){ + return $this->fetchCommandWithCredentials('extension_list',$arguments); + } + /** * @param array $arguments * @return mixed @@ -1216,6 +1232,22 @@ public function OWNERCRESEND(array $arguments=[]){ return $this->fetchCommandWithCredentials('ownercresend',$arguments); } + /** + * @param array $arguments + * @return mixed + */ + public function USERSETTINGS(array $arguments=[]){ + return $this->fetchCommandWithCredentials('usersettings',$arguments); + } + + /** + * @param array $arguments + * @return mixed + */ + public function USERSETTINGSGET(array $arguments=[]){ + return $this->fetchCommandWithCredentials('usersettingsget',$arguments); + } + protected function fetchCommandWithCredentials(string $command,array $arguments){ $basicArguments = [ 'apiuser' => $this->user, @@ -1255,11 +1287,20 @@ protected function fetch(string $method,string $endpoint,array $headers,$body=nu /** * Converts boolean to 'Y' (Yes) or 'N' (No) - * @param $bool + * @param bool $bool * @return string */ public static function convertBoolean($bool){ return $bool?'Y':'N'; } + /** + * Converts 'Y' (Yes) or 'N' (No) to boolean + * @param string $yesNo + * @return bool + */ + public static function convertYesNo($yesNo){ + return $yesNo==='Y'; + } + } \ No newline at end of file