Show
Ignore:
Timestamp:
04/18/08 17:09:46 (7 months ago)
Author:
daisuke
Message:

lang/perl/WebService-Simple; docs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WebService-Simple/branch/lwp-base/lib/WebService/Simple.pm

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