WebService::Simple::Cabinet - WSDL/WADL-like interface make for WebService::Simple.
use WebService::Simple::Cabinet; my $flickr = WebService::Simple::Cabinet->new( { global => { name => 'flickr', package => 'Flickr', base_url => 'http://api.flickr.com/services/rest/', params => { api_key => undef, }, }, method => [ { name => 'echo', params => { method => 'flickr.test.echo', name => undef, }, options => {}, }, ], }, api_key => 'your_api_key', ); my $res_xml = $flickr->echo( name => 'echo data' ); print $res_xml->{name};
unmaking syntax (TODO)
use WebService::Simple::Cabinet; my $flickr = WebService::Simple::Cabinet->new( 'flickr', api_key => 'your_api_key', ); my $res_xml = $flickr->echo( name => 'echo data' ); print $res_xml->{name};
WebService::Simple::Cabinet is make to easily Perl API interface some web services.
It is possible to use it easily by preparing the definition corresponding to some Web Service.
Kazuhiro Osawa <ko@yappo.ne.jp> mattn
WebService::Simple
svn co http://svn.coderepos.org/share/lang/perl/WebService-Simple-Cabinet/trunk WebService-Simple-Cabinet
WebService::Simple::Cabinet is Subversion repository is hosted at http://coderepos.org/share/. patches and collaborators are welcome.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::Simple::Cabinet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Simple::Cabinet
CPAN shell
perl -MCPAN -e shell install WebService::Simple::Cabinet
For more information on module installation, please visit the detailed CPAN module installation guide.