Skip to content

Commit 52e41d0

Browse files
authored
Update README.md
1 parent 458c126 commit 52e41d0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,9 @@ use ApiClients\Tools\Psr7\Oauth1\Definition;
2424
use ApiClients\Tools\Psr7\Oauth1\RequestSigning\RequestSigner;
2525
use ApiClients\Tools\Psr7\Oauth1\Signature\HmacSha1Signature;
2626

27-
$consumerSecret = new Definition\ConsumerSecret('consumer_secret');
28-
2927
$requestSigner = new RequestSigner(
3028
new Definition\ConsumerKey('consumer_key'),
31-
$consumerSecret,
32-
new HmacSha1Signature( // Optional, but allows for other than HMAC SHA1 signatures
33-
$consumerSecret
34-
)
29+
new Definition\ConsumerSecret('consumer_secret')
3530
);
3631

3732
// 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)