Kelunik\Acme\AcmeClient classAcmeClient

Low level ACME client.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(string$directoryUri,Kelunik\Acme\KeyPair$keyPair,Kelunik\Acme\HttpClient|null$http =null)

AcmeClient constructor.

Type Parameter Description Default Value
string $directoryUri URI to the ACME server directory none
Kelunik\Acme\KeyPair $keyPair account key pair none
Kelunik\Acme\HttpClient|null $http custom HTTP client, default client will be used if no value is provided null
get —public functionget(string$resource):Amp\Promise

Retrieves a resource using a GET request.

Type Parameter Description Default Value
string $resource resource to fetch none
post —public functionpost(string$resource,array$payload):Amp\Promise

Retrieves a resource using a POST request.

Type Parameter Description Default Value
string $resource resource to fetch none
array $payload No documentation. none