Skip to content

Commit

Permalink
deleteMxRecord added to DNS api
Browse files Browse the repository at this point in the history
  • Loading branch information
digicatech authored Jan 16, 2021
1 parent 935a4d4 commit 03683ab
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions src/APIs/Dns.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,14 @@ public function updateSoaRecord($domainName , $responsiblePerson , $refresh ,$re
* @throws Exception
* @link https://resellerclub.webpropanel.com/kb/deleting-ipv4-address-record-api
*/
public function deleteIpv4Record($domainName , $value , $host)
public function deleteIpv4Record($domainName , $host , $value)
{
return $this->get(
'manage/delete-ipv4-record',
[
'domain-name' => $domainName ,
'host' => $host,
'value' => $value
'value' => $value
]
);
}
Expand All @@ -596,14 +596,14 @@ public function deleteIpv4Record($domainName , $value , $host)
* @throws Exception
* @link https://resellerclub.webpropanel.com/kb/deleting-ipv6-address-record-api
*/
public function deleteIpv6Record($domainName , $value , $host)
public function deleteIpv6Record($domainName , $host , $value)
{
return $this->get(
'manage/delete-ipv6-record',
[
'domain-name' => $domainName ,
'host' => $host,
'value' => $value
'value' => $value
]
);
}
Expand All @@ -622,14 +622,14 @@ public function deleteIpv6Record($domainName , $value , $host)
* @throws Exception
* @link https://resellerclub.webpropanel.com/kb/deleting-cname-record-api
*/
public function deleteCnameRecord($domainName , $value , $host)
public function deleteCnameRecord($domainName , $host , $value)
{
return $this->get(
'manage/delete-cname-record',
[
'domain-name' => $domainName ,
'host' => $host,
'value' => $value
'value' => $value
]
);
}
Expand All @@ -647,14 +647,14 @@ public function deleteCnameRecord($domainName , $value , $host)
* @throws Exception
* @link https://resellerclub.webpropanel.com/kb/deleting-ns-record-api
*/
public function deleteNsRecord($domainName , $value , $host)
public function deleteNsRecord($domainName , $host , $value)
{
return $this->get(
'manage/delete-ns-record',
[
'domain-name' => $domainName ,
'host' => $host,
'value' => $value
'value' => $value
]
);
}
Expand All @@ -672,18 +672,45 @@ public function deleteNsRecord($domainName , $value , $host)
* @throws Exception
* @link https://resellerclub.webpropanel.com/kb/deleting-txt-record-api
*/
public function deleteTxtRecord($domainName , $value , $host)
public function deleteTxtRecord($domainName , $host , $value)
{
return $this->get(
'manage/delete-txt-record',
[
'domain-name' => $domainName ,
'host' => $host,
'value' => $value
'value' => $value
]
);
}




/**
* Deletes a Text (MX) record.
*
* @param String $domainName
* @param String $value
* @param String $host
*
*
* @return array|Exception
* @throws Exception
* @link https://resellerclub.webpropanel.com/kb/deleting-mx-record-api
*/
public function deleteMxRecord($domainName , $host , $value)
{
return $this->get(
'manage/delete-txt-record',
[
'domain-name' => $domainName ,
'host' => $host,
'value' => $value
]
);
}





Expand Down

0 comments on commit 03683ab

Please sign in to comment.