From 9d61777d28cbac9e0309acb1967f04e1fc5fc846 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 1 Nov 2010 17:04:29 +0100 Subject: update synopsis --- lib/Net/HTTP/Spore/Middleware/Auth/OAuth.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/Net/HTTP/Spore/Middleware/Auth/OAuth.pm b/lib/Net/HTTP/Spore/Middleware/Auth/OAuth.pm index 3fb5bf0..524205d 100644 --- a/lib/Net/HTTP/Spore/Middleware/Auth/OAuth.pm +++ b/lib/Net/HTTP/Spore/Middleware/Auth/OAuth.pm @@ -44,6 +44,9 @@ sub call { =head1 SYNOPSIS my $client = Net::HTTP::Spore->new_from_spec('twitter.json'); + + $client->enable('Format::JSON'); + $client->enable( 'Auth::OAuth', consumer_key => 'xxx', @@ -52,6 +55,10 @@ sub call { token_secret => '456' ); + print $client->friends_timeline( + format => 'json' + )->body->[0]->{text}; + =head1 DESCRIPTION Net::HTTP::Spore::Middleware::Auth::OAuth is a middleware to handle OAuth mechanism. This middleware should be loaded as the last middleware, because it requires all parameters to be setted to calculate the signature. -- cgit 1.4.1