http://www.perlmonks.org?node_id=892255


in reply to Re: Understanding oAuth with Perl
in thread Understanding oAuth with Perl

Thank you for the reply. Now i have no problems with GET request but can't complete POSTs.
if ($app->authorized) { my $response = $app->view_restricted_resource('https://www.yammer. +com/api/v1/users.xml' ); print $response->content."\n"; $response = $app->update_restricted_resource("https://www.yammer.c +om/api/v1/messages/", body => "Message body", broadcast => "true" ); print $response->content."\n"; exit; }
I'll get error "POST on Net::OAuth::ProtectedResourceRequest=HASH(0x5590e74) failed: 302 Found". Can you explain why?