diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-08-31 15:40:13 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-08-31 15:40:13 +0200 |
| commit | 945412cd8fad832f7bea42ac3191867287a9a3c0 (patch) | |
| tree | f6b70e8fce7eefaa2ad01f8d1d3f3ed053d50af6 /eg/api.pl | |
| download | net-http-api-spec-945412cd8fad832f7bea42ac3191867287a9a3c0.tar.gz | |
initial import
Diffstat (limited to '')
| -rw-r--r-- | eg/api.pl | 10 |
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; |
