Skip to content

Commit

Permalink
* some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JWaldecker committed Apr 4, 2018
1 parent a0bdf8d commit 45c2859
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lumaserv/lumaserv-php-client",
"description": "A full-featured implementation of the LumaservSystem-JSON-API",
"type": "library",
"version": "1.7.6",
"version": "1.7.7",
"require": {
"php": ">=5.5",
"guzzlehttp/guzzle": ">=6.0"
Expand Down
5 changes: 3 additions & 2 deletions src/DomainHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function undelete($sld, $tld)
]);
}

public function update($sld, $tld, $owner, $admin, $tech, $zone, $ns_1, $ns_2, $zone_id, $ns_3 = null, $ns_4 = null, $ns_5 = null)
public function update($sld, $tld, $owner, $admin, $tech, $zone, $ns_1, $ns_2, $zone_id = null, $ns_3 = null, $ns_4 = null, $ns_5 = null)
{
return $this->lumaserv->put('domains/update', [
'sld' => $sld,
Expand All @@ -162,7 +162,7 @@ public function update($sld, $tld, $owner, $admin, $tech, $zone, $ns_1, $ns_2, $
]);
}

public function create($sld, $tld, $owner, $admin, $tech, $zone, $ns_1, $ns_2, $ns_3 = null, $ns_4 = null, $ns_5 = null)
public function create($sld, $tld, $owner, $admin, $tech, $zone, $ns_1, $ns_2, $ns_3 = null, $ns_4 = null, $ns_5 = null, $years = 1)
{
return $this->lumaserv->post('domains/create', [
'sld' => $sld,
Expand All @@ -176,6 +176,7 @@ public function create($sld, $tld, $owner, $admin, $tech, $zone, $ns_1, $ns_2, $
'ns3' => $ns_3,
'ns4' => $ns_4,
'ns5' => $ns_5,
'years' => $years
]);
}

Expand Down
5 changes: 5 additions & 0 deletions src/NameserveZoneHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public function detail($zone_id)
return $this->lumaserv->get('domains/zones/'.$zone_id);
}

public function deleteZone($zone_id)
{
return $this->lumaserv->delete('domains/zones/'.$zone_id.'/delete');
}

public function addEntry($zone_id, $sld, $ttl, $type, $data)
{
return $this->addEntries($zone_id, [
Expand Down

0 comments on commit 45c2859

Please sign in to comment.