Skip to content

Commit

Permalink
Update Tenant.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll authored Feb 21, 2023
1 parent 1631501 commit 636db45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Ploi/Resources/Tenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ public function delete(string $tenant = null): Response
return $this->getPloi()->makeAPICall($url, 'delete');
}

public function requestCertificate(string $tenant, string $webhook): Response
public function requestCertificate(string $tenant, string $webhook = null, string $domains = ''): Response
{
$options = [
'body' => json_encode([
'webhook' => $webhook,
'domains' => $domains
])
];

Expand All @@ -69,4 +70,4 @@ public function revokeCertificate(string $tenant, string $webhook): Response

return $this->getPloi()->makeApiCall($url, 'post', $options);
}
}
}

0 comments on commit 636db45

Please sign in to comment.