Skip to content

Commit

Permalink
Add newly discovered commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Dec 3, 2022
1 parent c5d7fb6 commit 6975367
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/OxxaAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,20 @@ public function DOMAIN_EPP(array $arguments=[]){
return $this->fetchCommandWithCredentials('domain_epp',$arguments);
}

/**
* @param array $arguments
* @return mixed
*/
public function DOMAIN_EPP_SHOW(array $arguments=[]){
if(!array_key_exists('sld',$arguments)){
throw new InvalidArgumentException('Missing SLD argument.');
}
if(!array_key_exists('tld',$arguments)){
throw new InvalidArgumentException('Missing TLD argument.');
}
return $this->fetchCommandWithCredentials('domain_epp_show',$arguments);
}

/**
* @param array $arguments
* @return mixed
Expand Down Expand Up @@ -498,6 +512,17 @@ public function FOARESEND(array $arguments=[]){
return $this->fetchCommandWithCredentials('foaresend',$arguments);
}

/**
* @param array $arguments
* @return mixed
*/
public function GLUE(array $arguments=[]){
if(!array_key_exists('ns_fqdn',$arguments)){
throw new InvalidArgumentException('Missing NS_FQDN argument.');
}
return $this->fetchCommandWithCredentials('glue',$arguments);
}

/**
* @param array $arguments
* @return mixed
Expand Down Expand Up @@ -553,8 +578,8 @@ public function GLUE_UPD(array $arguments=[]){
if(!array_key_exists('ns_fqdn',$arguments)){
throw new InvalidArgumentException('Missing NS_FQDN argument.');
}
if(!array_key_exists('ns_ip',$arguments)){
throw new InvalidArgumentException('Missing NS_IP argument.');
if(!array_key_exists('ns_ip_new',$arguments)){
throw new InvalidArgumentException('Missing NS_IP_NEW argument.');
}
return $this->fetchCommandWithCredentials('glue_upd',$arguments);
}
Expand Down

0 comments on commit 6975367

Please sign in to comment.