| | 159 | =head1 DESCRIPTION |
| | 160 | |
| | 161 | WebService::Simple is a simple class to interact with web services. |
| | 162 | |
| | 163 | It's basically an LWP::UserAgent that remembers recurring api URLs and |
| | 164 | parameters, plus sugar to parse the results. |
| | 165 | |
| | 166 | =head1 PARSERS |
| | 167 | |
| | 168 | Web services return their results in various different formats. Or perhaps |
| | 169 | you require more sophisticated results parsing than what WebService::Simple |
| | 170 | provides. |
| | 171 | |
| | 172 | WebService::Simple by default uses XML::Simple, but you can easily override |
| | 173 | that by providing a parser object to the constructor: |
| | 174 | |
| | 175 | my $service = WebService::Simple->new( |
| | 176 | response_parser => AVeryComplexParser->new, |
| | 177 | ... |
| | 178 | ); |
| | 179 | my $response = $service->get( ... ); |
| | 180 | my $thing = $response->parse_response; |
| | 181 | |
| | 182 | This allows great flexibility in handling different webservices |
| | 183 | |
| | 184 | =head1 AUTHOR |
| | 185 | |
| | 186 | Yusuke Wada C<< <yusuke@kamawada.com> >> |
| | 187 | |
| | 188 | Daisuke Maki C<< <daisuke@endeworks.jp> >> |
| | 189 | |
| | 190 | =head1 COPYRIGHT AND LICENSE |
| | 191 | |
| | 192 | Copyright (c) 2008 Yusuke Wada, All rights reserved. |
| | 193 | |
| | 194 | This module is free software; you can redistribute it |
| | 195 | and/or modify it under the same terms as Perl itself. |
| | 196 | See L<perlartistic>. |
| | 197 | |