From 945412cd8fad832f7bea42ac3191867287a9a3c0 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Tue, 31 Aug 2010 15:40:13 +0200 Subject: initial import --- eg/api.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 eg/api.pl (limited to 'eg/api.pl') diff --git a/eg/api.pl b/eg/api.pl new file mode 100644 index 0000000..d5e8a61 --- /dev/null +++ b/eg/api.pl @@ -0,0 +1,10 @@ +use strict; +use warnings; +use 5.010; + +use Net::HTTP::API::Spec; + +my $api = Net::HTTP::API::Spec->load_from_spec(shift); +my $res = $api->user_information(format => 'json', username => 'franckcuny'); + +use YAML::Syck; warn Dump $res; -- cgit v1.2.3