From 28e1378506b78b5049af45da0a3f2808e8bc8beb Mon Sep 17 00:00:00 2001 From: Jens Beltofte Date: Mon, 9 Sep 2019 20:56:06 +0200 Subject: [PATCH] Add retry option to getSSLVerificationStatus() --- src/Endpoints/SSL.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Endpoints/SSL.php b/src/Endpoints/SSL.php index fea524b..9b50c8b 100644 --- a/src/Endpoints/SSL.php +++ b/src/Endpoints/SSL.php @@ -35,13 +35,18 @@ class SSL implements API * Get SSL Verification Info for a Zone * * @param string $zoneID The ID of the zone + * @param bool $retry Immediately retry SSL Verification * @return array|false */ - public function getSSLVerificationStatus(string $zoneID) + public function getSSLVerificationStatus(string $zoneID, bool $retry = false) { $return = $this->adapter->get( - 'zones/' . $zoneID . '/ssl/verification' + 'zones/' . $zoneID . '/ssl/verification', + [ + 'retry' => $retry + ] ); + $body = json_decode($return->getBody()); if (isset($body->result)) { return $body;