Skip to content

Commit

Permalink
* some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
JWaldecker committed Aug 31, 2017
1 parent 6f91a4a commit 1100824
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
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.6.3",
"version": "1.6.4",
"require": {
"php": ">=5.5",
"guzzlehttp/guzzle": "6.2.1"
Expand Down
19 changes: 19 additions & 0 deletions src/NameserveZoneHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,25 @@ public function addEntries($zone_id, $records)
]);
}

public function changeEntries($zone_id, $old_record_sld = null, $old_record_ttl = null, $old_record_type = null, $old_record_data = null, $record_sld = null, $record_ttl = null, $record_type = null, $record_data = null, $limit = null)
{
return $this->lumaserv->post('domains/zones/'.$zone_id.'/changeEntries', [
'old_record' => [
'sld' => $old_record_sld,
'ttl' => $old_record_ttl,
'type' => $old_record_type,
'data' => $old_record_data
],
'record' => [
'sld' => $record_sld,
'ttl' => $record_ttl,
'type' => $record_type,
'data' => $record_data
],
'limit' => $limit
]);
}

public function delEntry($zone_id, $sld, $ttl = null, $type = null, $data = null, $limit = null)
{
return $this->delEntries($zone_id, [
Expand Down

0 comments on commit 1100824

Please sign in to comment.