Skip to content

Commit 04cb716

Browse files
committed
Added HMAC SHA1 signature to example
1 parent b8a5866 commit 04cb716

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ composer require api-clients/psr7-oauth1
2222

2323
$requestSigner = new RequestSigner(
2424
new ConsumerKey('consumer_key'),
25-
new ConsumerSecret('consumer_secret')
25+
new ConsumerSecret('consumer_secret'),
26+
new HmacSha1Signature( /**
27+
new ConsumerSecret('consumer_secret') * Optional, but allows for other than SHA1 signatures
28+
) */
2629
);
2730

2831
// Pass it a PSR-7 request and it returns a signed PSR7 request you can use in any PSR7 capable HTTP client.

0 commit comments

Comments
 (0)