guzzle/guzzle — pull request #291 by Danack (2013-04-10 14:14:49+00:00)
Title: Moved decision of whether to sign post fields to a function.

Hi,

The commit is to make it easier to work with APIs that are very slightly broken. Some non-conformant APIs that have incorrect implementations of Oauth. The correct implementation of Oauth in Guzzle fails the signature check, as the signature is calculated incorrectly on the server side.

Without this change to work around this the whole of the function getParamsToSign(RequestInterface $request, $timestamp, $nonce) in OauthPlugin needs to be overridden. Being able to override just a small snippet is a lot nicer such as:

https://github.com/Danack/FlickrGuzzle/blob/master/src/Intahwebz/FlickrGuzzle/FlickrOauthPlugin.php

cheers
Dan