the request be considered when signing the request...we can't assume
we are always using POST - this will cause requests to fail.
protected $_params = array();
protected $_url;
+ protected $_method;
- function __construct($url, $params = array())
+ function __construct($url, $params = array(), $method = 'POST')
{
if (!isset($params['oauth_version'])) {
$params['oauth_version'] = self::VERSION;
$this->_params = $params;
$this->_url = $url;
+ $this->_method = $method;
}
/**
public function getSignatureBaseString()
{
$parts = array(
- 'POST',
+ $this->_method,
$this->_url,
$this->_getSignableParameters()
);