siewwp/php-hmac-http

Guzzle http client with hmac authentication middleware

v1.1.2 2018-07-30 08:12 UTC

This package is not auto-updated.

Last update: 2024-04-14 03:12:24 UTC


README

Usage

Providing the key on constructor

$key = Acquia\Hmac\Key($appId, $appSecret);

$client = new \Siewwp\HmacHttp\HttpClient($options, $key);

// your usual guzzle stuff

Providing the key using key setter

$client = new \Siewwp\HmacHttp\HttpClient($options, $key);

$key = Acquia\Hmac\Key($appId, $appSecret);

$client->setKey($key);

// your usual guzzle stuff