Class | MusicBrainz::Webservice::Webservice |
In: |
lib/rbrainz/webservice/webservice.rb
|
Parent: | IWebservice |
An interface to the MusicBrainz XML web service via HTTP.
By default, this class uses the MusicBrainz server but may be configured for accessing other servers as well using the constructor. This implements IWebService, so additional documentation on method parameters can be found there.
open_timeout | [RW] | Timeouts for opening and reading connections (in seconds) |
read_timeout | [RW] | Timeouts for opening and reading connections (in seconds) |
If no options are given the default MusicBrainz webservice will be used. User authentication with username and password is only needed for some services. If you want to query an alternative webservice you can do so by setting the appropriate options.
Available options:
Query the Webservice with HTTP GET.
Returns an IO object on success.
Options:
Raises: | RequestError, ResourceNotFoundError, AuthenticationError, ConnectionError |
See: | IWebservice#get |
Send data to the web service via HTTP-POST.
Note that this may require authentication. You can set user name, password and realm in the constructor.
Returns an IO object on success.
Options:
Raises: | ConnectionError, RequestError, AuthenticationError, ResourceNotFoundError |
See: | IWebservice#post |