Modifica creazione record: ritorno del oggetto record
This commit is contained in:
@@ -33,7 +33,7 @@ class DNS implements API
|
|||||||
* @param bool $proxied
|
* @param bool $proxied
|
||||||
* @param string $priority
|
* @param string $priority
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return bool
|
* @return \stdClass
|
||||||
*/
|
*/
|
||||||
public function addRecord(
|
public function addRecord(
|
||||||
string $zoneID,
|
string $zoneID,
|
||||||
@@ -68,11 +68,7 @@ class DNS implements API
|
|||||||
|
|
||||||
$this->body = json_decode($user->getBody());
|
$this->body = json_decode($user->getBody());
|
||||||
|
|
||||||
if (isset($this->body->result->id)) {
|
return $this->body->result;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function listRecords(
|
public function listRecords(
|
||||||
|
|||||||
Reference in New Issue
Block a user