Low level ACME client.
| author | Niklas Keller |
|---|---|
| package | Kelunik\Acme |
__construct(string $dictionaryUri, \Kelunik\Acme\KeyPair $keyPair, \Amp\Artax\Client|null $http = null)
| api |
|---|
stringURI to the ACME server directory
\Kelunik\Acme\KeyPairaccount key pair
\Amp\Artax\Clientnullcustom HTTP client, default client will be used if no value is provided
get(string $resource) : \Amp\Promise
| api |
|---|
stringresource to fetch
\Kelunik\Acme\AcmeException |
If the request failed. |
|---|
\Amp\Promiseresolves to the HTTP responsepost(string $resource, array $payload) : \Amp\Promise
| api |
|---|
stringresource to fetch
array
\Kelunik\Acme\AcmeException |
If the request failed. |
|---|
\Amp\Promiseresolves to the HTTP response