cfmgrv4 init...4
This commit is contained in:
parent
3a5f26c801
commit
0702807666
@ -160,8 +160,10 @@ class ZoneService extends CloudflareService
|
|||||||
}
|
}
|
||||||
public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity
|
public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity
|
||||||
{
|
{
|
||||||
|
$endpoint = "accounts/{$parent_entity->getPK()}/registrar/domains/{$entity->getTitle()}";
|
||||||
|
log_message("debug", $endpoint);
|
||||||
$this->setParentEntity($parent_entity);
|
$this->setParentEntity($parent_entity);
|
||||||
$response = $this->getMySocket()->get("accounts/{$parent_entity->getPK()}/registrar/domains/{$entity->getTitle()}");
|
$response = $this->getMySocket()->get($endpoint);
|
||||||
$body = json_decode($response->getBody());
|
$body = json_decode($response->getBody());
|
||||||
$formDatas = ['expire_date', $body->result->expires_at];
|
$formDatas = ['expire_date', $body->result->expires_at];
|
||||||
// log_message("debug", var_export($formDatas, true));
|
// log_message("debug", var_export($formDatas, true));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user