Add retry option to getSSLVerificationStatus()

This commit is contained in:
Jens Beltofte
2019-09-09 20:56:06 +02:00
parent 9b9738910d
commit 28e1378506

View File

@@ -35,13 +35,18 @@ class SSL implements API
* Get SSL Verification Info for a Zone * Get SSL Verification Info for a Zone
* *
* @param string $zoneID The ID of the zone * @param string $zoneID The ID of the zone
* @param bool $retry Immediately retry SSL Verification
* @return array|false * @return array|false
*/ */
public function getSSLVerificationStatus(string $zoneID) public function getSSLVerificationStatus(string $zoneID, bool $retry = false)
{ {
$return = $this->adapter->get( $return = $this->adapter->get(
'zones/' . $zoneID . '/ssl/verification' 'zones/' . $zoneID . '/ssl/verification',
[
'retry' => $retry
]
); );
$body = json_decode($return->getBody()); $body = json_decode($return->getBody());
if (isset($body->result)) { if (isset($body->result)) {
return $body; return $body;