I'm trying to use the Net::OAuth module to authorise with the Yammer API and I have the following code snippet, pretty much taken from the Synopsis on CPAN.
$Net::OAuth::PROTOCOL_VERSION = Net::OAuth::PROTOCOL_VERSION_1_0A;
my $q = new CGI;
my $request = Net::OAuth->request("request token")->from_hash($q->Vars,
request_url => $self->_request_token_url,
request_method => $q->request_method,
consumer_secret => $self->consumer_private,
);
But if I try and run my test it throws an error as follows:
Expected a hash! at /Library/Perl/5.8.8/Net/OAuth/Message.pm line 241.
Have I made an obvious syntax error or am I going to have to look at the OAuth module itself?