Skip to content

Instantly share code, notes, and snippets.

@WyriHaximus
Created October 26, 2016 20:07
Show Gist options
  • Select an option

  • Save WyriHaximus/1d686db17840317d568ebfe1b978ecbe to your computer and use it in GitHub Desktop.

Select an option

Save WyriHaximus/1d686db17840317d568ebfe1b978ecbe to your computer and use it in GitHub Desktop.
<?php
return (new RequestSigner(
new ConsumerKey('consumer_key'),
new ConsumerSecret('consumer_secret')
))->withAccessToken(
new AccessToken('token_key'),
new TokenSecret('token_secret')
)->sign($request); // Returns a signed PSR7 request you can use in any PSR7 capable HTTP client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment