summaryrefslogtreecommitdiff
path: root/eg/api.pl
diff options
context:
space:
mode:
Diffstat (limited to 'eg/api.pl')
-rw-r--r--eg/api.pl2
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};