Changeset 8821
- Timestamp:
- 04/04/08 07:05:20 (6 months ago)
- Location:
- lang/perl/WebService-Simple/trunk
- Files:
-
- 5 modified
-
Build.PL (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
README (modified) (1 diff)
-
lib/WebService/Simple.pm (modified) (6 diffs)
-
lib/WebService/Simple/Response.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WebService-Simple/trunk/Build.PL
r8746 r8821 13 13 'LWP::UserAgent' => 0, 14 14 'XML::Simple' => 0, 15 'HTTP::Response' => 0, 15 16 }, 16 17 add_to_cleanup => [ 'WebService-Simple-*' ], -
lang/perl/WebService-Simple/trunk/Makefile.PL
r8746 r8821 14 14 'LWP::UserAgent' => 0, 15 15 'XML::Simple' => 0, 16 'HTTP::Response' => 0, 16 17 }, 17 18 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, -
lang/perl/WebService-Simple/trunk/README
r8746 r8821 1 1 WebService-Simple version 0.0.2 2 3 DESCRIPTION 4 5 WebService::Simple provides you a simple interface to Web Services APIs. 2 6 3 7 INSTALLATION -
lang/perl/WebService-Simple/trunk/lib/WebService/Simple.pm
r8746 r8821 78 78 =head1 NAME 79 79 80 WebService::Simple - Simple interface to Web Service APIs80 WebService::Simple - Simple interface to Web Services APIs 81 81 82 82 =head1 VERSION … … 99 99 =head1 DESCRIPTION 100 100 101 WebService::Simple provides you a simple interface to Web Serv cieAPIs101 WebService::Simple provides you a simple interface to Web Services APIs 102 102 103 103 =head1 METHODS … … 113 113 114 114 Create and return a new WebService::Simple object. 115 "new" Method requires a nbase_url of Web Service API.115 "new" Method requires a base_url of Web Service API. 116 116 117 117 =item get(I<%args>) … … 122 122 Get the WebService::Simple::Response object. 123 123 124 If you want to add a path to base URL, use option parameters.124 If you want to add a path to base URL, use an option parameter. 125 125 126 126 my $lingr = WebService::Simple->new( 127 base_url => 'http://www.lingr.com/',128 param => { api_key => "your_api_key", format => 'xml'}127 base_url => "http://www.lingr.com/", 128 param => { api_key => "your_api_key", format => "xml" } 129 129 ); 130 my $response = $lingr->get( {}, { path => '/api/session/create'} );130 my $response = $lingr->get( {}, { path => "/api/session/create" } ); 131 131 132 132 =back … … 138 138 139 139 my $cache = Cache::File->new( 140 cache_root => '/tmp/mycache',141 default_expires => '30 min',140 cache_root => "/tmp/mycache", 141 default_expires => "30 min", 142 142 ); 143 143 … … 155 155 =head1 LICENCE AND COPYRIGHT 156 156 157 Copyright (c) 2008 , Yusuke Wada C<< <yusuke@kamawada.com> >>.All rights reserved.157 Copyright (c) 2008 Yusuke Wada, All rights reserved. 158 158 159 159 This module is free software; you can redistribute it and/or -
lang/perl/WebService-Simple/trunk/lib/WebService/Simple/Response.pm
r8551 r8821 22 22 =head1 NAME 23 23 24 Webservice::Simple::Response - Override HTTP::Request and add a xml_parse method 24 Webservice::Simple::Response - Adds a xml_parse() to HTTP::Response 25 25 26 26 =head1 VERSION … … 35 35 36 36 Parse a xml content with XML::Simple and return the Perl object. 37 You can tell XML::Simple parse options as parameters. 38 39 my $ref = $response->parse_xml( { forcearray => [], keyattr => [] } ); 37 40 38 41 =back … … 45 48 =head1 LICENCE AND COPYRIGHT 46 49 47 Copyright (c) 2008 , Yusuke Wada C<< <yusuke@kamawada.com> >>.All rights reserved.50 Copyright (c) 2008 Yusuke Wada, All rights reserved. 48 51 49 52 This module is free software; you can redistribute it and/or
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)