siewwp / php-hmac-http
Guzzle HTTP客户端带有 hmac 认证中间件
v1.1.2
2018-07-30 08:12 UTC
Requires
- acquia/http-hmac-php: ^4.0
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2024-09-29 05:27:50 UTC
README
使用方法
在构造函数中提供密钥
$key = Acquia\Hmac\Key($appId, $appSecret); $client = new \Siewwp\HmacHttp\HttpClient($options, $key); // your usual guzzle stuff
使用密钥设置器提供密钥
$client = new \Siewwp\HmacHttp\HttpClient($options, $key); $key = Acquia\Hmac\Key($appId, $appSecret); $client->setKey($key); // your usual guzzle stuff