Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

webservice::musicbrainz::response(3pm) [debian man page]

WebService::MusicBrainz::Response(3pm)			User Contributed Perl Documentation		    WebService::MusicBrainz::Response(3pm)

NAME
WebService::MusicBrainz::Response SYNOPSIS
DESCRIPTION
This module will hide the details of the XML web service response and provide an API to query the XML data which has been returned. This module is responsible for parsing the XML web service response and instantiating objects to provide access to the details of the response. METHODS
new() This method is the constructor and it will call for initialization. xpc() as_xml() This method returns the raw XML from the MusicBrainz web service response. generator() This method will return an optional value of the generator. created() This method will return an optional value of the created date. score() This method will return an optional value of the relevance score. metadata() This method will return an Response::Metadata object. artist() This method will return an Response::Artist object. release() This method will return an Reponse::Release object;. track() This method will return an Response::Track object. label() This method will return an Response::Label object. artist_list() This method will return a reference to the Response::ArtistList object in a scalar context. If in a array context, an array of Response::Artist objects will be returned. release_list() This method will return a reference to the Response::ReleaseList object in a scalar context. If in a array context, an array of Response::Release objects will be returned. track_list() This method will return a reference to the Response::TrackList object in a scalar context. If in a array context, an array of Response::Track objects will be returned. label_list() This method will return a reference to the Response::LabelList object in a scalar context. If in a array context, an array of Response::Label objects will be returned. AUTHOR
Bob Faist <bob.faist@gmail.com> COPYRIGHT AND LICENSE
Copyright 2006-2007 by Bob Faist This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
http://wiki.musicbrainz.org/XMLWebService perl v5.10.1 2009-12-06 WebService::MusicBrainz::Response(3pm)

Check Out this Related Man Page

HTTP::OAI::Response(3pm)				User Contributed Perl Documentation				  HTTP::OAI::Response(3pm)

NAME
HTTP::OAI::Response - An OAI response DESCRIPTION
"HTTP::OAI::Response" inherits from HTTP::Response and supplies some utility methods for OAI. METHODS
$r = new HTTP::OAI::Response([responseDate=>$rd][, requestURL=>$ru]) This constructor method returns a new HTTP::OAI::Response object. Optionally set the responseDate and requestURL. Use $r->is_error to test whether the request was successful. In addition to the HTTP response codes, the following codes may be returned: 600 - Error parsing XML or invalid OAI response Use $r->message to obtain a human-readable error message. $r->copy_from( $r ) Copies an HTTP::Response $r into this object. $headers = $r->headers Returns an HTTP::OAI::Headers object. $errs = $r->errors([$err]) Returns and optionally adds to the OAI error list. Returns a reference to an array. $rd = $r->responseDate( [$rd] ) Returns and optionally sets the response date. $ru = $r->requestURL( [$ru] ) Returns and optionally sets the request URL. $verb = $r->verb( [$verb] ) Returns and optionally sets the OAI verb. $r->version Return the version of the OAI protocol used by the remote site (protocolVersion is automatically changed by the underlying API). $r->xslt( $url ) Set the stylesheet to use in a response. NOTE - requestURI/request Version 2.0 of OAI uses a "request" element to contain the client's request, rather than a URI. The OAI-PERL library automatically converts from a URI into the appropriate request structure, and back again when harvesting. The exception to this rule is for badVerb errors, where the arguments will not be available for conversion into a URI. perl v5.12.4 2011-06-23 HTTP::OAI::Response(3pm)
Man Page