guzzle/guzzle — pull request #119 by christianchristensen (2012-08-13 02:54:15+00:00)
Title: [Http] request_token support in OAuth 1.0 signature plugin

This patch adds access to the parameter building portion of the signing sequence; this is particularly useful when using the Guzzle OAuthPlugin to build a signed `request_token` request which is necessary to begin the OAuth dance, but at this point will only have the consumer key/secret (as the request_token signing on the provider does not expect a token/token_secret during temp. assignment).

```PHP
CONS_KEY,
'consumer_secret' => CONS_SECRET,
'token' => FALSE,
'token_secret' => FALSE,
));

$request = $client->get('request_token');
$timestamp = date('U');
$params = $oauth->getParamsToSign($request, $timestamp);
$string = $oauth->getSignature($request, $timestamp);
$params['oauth_signature'] = $string;
$response = $client->get('request_token?' . http_build_query($params))->send();
...
```