diff options
author | franck cuny <franck@lumberjaph.net> | 2010-10-26 17:35:23 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-10-26 17:35:23 +0200 |
commit | 8b841d433f33fb9d72aefff025a01cdfb202ea29 (patch) | |
tree | 49c63e7429a116527f53133cec87189147d12d43 | |
parent | add role to trace (diff) | |
download | net-http-spore-8b841d433f33fb9d72aefff025a01cdfb202ea29.tar.gz |
fix method name
-rw-r--r-- | eg/api.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eg/api.pl b/eg/api.pl index 9fd3bee..60559ff 100644 --- a/eg/api.pl +++ b/eg/api.pl @@ -8,6 +8,6 @@ my $api = Net::HTTP::Spore->new_from_spec(shift); $api->enable('Net::HTTP::Spore::Middleware::Format::JSON'); -my ( $content, $result ) = $api->user_information( format => 'json', username => 'franckcuny' ); +my ( $content, $result ) = $api->get_info( format => 'json', username => 'franckcuny' ); say "name => ". $content->{body}->{user}->{name}; |