summaryrefslogtreecommitdiff
path: root/eg/api.pl
diff options
context:
space:
mode:
Diffstat (limited to 'eg/api.pl')
-rw-r--r--eg/api.pl10
1 files changed, 10 insertions, 0 deletions
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;