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

WWW::CNic::Response(3pm)				User Contributed Perl Documentation				  WWW::CNic::Response(3pm)

NAME
WWW::CNic::Response - base class for WWW::CNic response objects. SYNOPSIS
use WWW::CNic; my $query = WWW::CNic->new( OPTIONS ); my $response = $query->execute(); DESCRIPTION
This is the base class for all response objects returned by WWW::CNic. Each query type returns a different object, all of which inherit their basic functionality from this module. This module should never be accessed directly, only through its children. METHODS
All the child classes of WWW::CNic::Response inherit the following methods: $response->is_success(); This returns true if the transaction was completed successfully. If there was a server-side error due to invalid data or a system error, or there was an HTTP error this method will return undef. $response->is_error(); This is the converse of "is_success". It returns true if there was an error. $response->error(); This returns the error message generated, if any. This can be either a server-side error message or an HTTP error. $response->message(); This returns the message returned when the transaction was successful. $response->keys(); This returns an array containing all the keys returned by the server. $response->response($key); This returns the value corresponding to $key as returned by the server. This may be a scalar, or a reference to an array or hash, depending on the context. $response->dump(); This prints a human-readable dump of the data stored in the object to "STDOUT". Mainly useful in debugging. COPYRIGHT
This module is (c) 2011 CentralNic Ltd. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o http://toolkit.centralnic.com/ o WWW::CNic perl v5.12.3 2011-05-13 WWW::CNic::Response(3pm)
Man Page