Changeset 10211
- Timestamp:
- 04/23/08 22:43:22 (6 months ago)
- Location:
- lang/perl/WebService-Simple/trunk
- Files:
-
- 1 removed
- 2 modified
-
lib/WebService/Simple.pm (modified) (4 diffs)
-
lib/WebService/Simple/Response.pm (modified) (2 diffs)
-
t/pod-coverage.t (deleted)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WebService-Simple/trunk/lib/WebService/Simple.pm
r10078 r10211 156 156 } 157 157 158 # まだできてない。159 158 sub post 160 159 { … … 212 211 It's basically an LWP::UserAgent that remembers recurring api URLs and 213 212 parameters, plus sugar to parse the results. 214 215 213 216 214 =head1 SUBCLASSING … … 261 259 This allows great flexibility in handling different webservices 262 260 261 =head1 CACHING 262 263 my $cache = Cache::File->new( 264 cache_root => '/tmp/mycache', 265 default_expires => '30 min', 266 ); 267 268 my $flickr = WebService::Simple->new( 269 base_url => "http://api.flickr.com/services/rest/", 270 cache => $cache, 271 param => { api_key => "your_api_key, } 272 ); 273 274 263 275 =head1 AUTHOR 264 276 … … 270 282 271 283 =head1 COPYRIGHT AND LICENSE 272 273 Copyright (c) 2008 Yusuke Wada, All rights reserved.274 284 275 285 This module is free software; you can redistribute it -
lang/perl/WebService-Simple/trunk/lib/WebService/Simple/Response.pm
r10071 r10211 28 28 =head1 NAME 29 29 30 Webservice::Simple::Response - Adds a xml_parse() to HTTP::Response 31 32 =head1 VERSION 33 34 This document describes Webservice::Simple::Response version 0.0.1 35 36 =head1 METHODS 37 38 =over 4 39 40 =item parse_xml(I<%args>) 41 42 Parse a xml content with XML::Simple and return the Perl object. 43 You can tell XML::Simple parse options as parameters. 44 45 my $ref = $response->parse_xml( { forcearray => [], keyattr => [] } ); 46 47 =back 30 Webservice::Simple::Response - Adds a parse_response() to HTTP::Response 48 31 49 32 =head1 AUTHOR … … 51 34 Yusuke Wada C<< <yusuke@kamawada.com> >> 52 35 36 Daisuke Maki C<< <daisuke@endeworks.jp> >> 37 53 38 =head1 COPYRIGHT AND LICENSE 54 55 Copyright (c) 2008 Yusuke Wada, All rights reserved.56 39 57 40 This module is free software; you can redistribute it 58 41 and/or modify it under the same terms as Perl itself. 59 42 See L<perlartistic>. 43 44 =cut
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)