title | issue |
---|---|
Unify hmac signature AppSystem client |
NEXT-15806 |
- Added Guzzle middleware for unify sign and verify AppSystem API requests.
Every request of App System now can automatically sign or verify when you use Guzzle client with a define Option Request
Usage:
try {
$result = $client->post('https://example.com', [
app_request_type => [
app_secret: string // this is required
validated_response: true/false
]
]);
} catch (ClientException $e) {
print $e->getMessage();
$response = $e->getResponse();
}