Inherits from NSObject
Declared in MBRequest.h
MBRequest.m

Overview

Request interface for webservice queries.

Handles only one request at a time, but will group multiple requests of similar nature. For example, adding releases to a collection will be queued until submitRequestWithQuery: is called.

See the (XML Webservice Documentation)[http://musicbrainz.org/doc/XML_Web_Service/Version_2] for more information about forming webservice queries.

Tasks

Other Methods

Other Methods

Properties

EntityId

Request Entity Id

@property (copy, nonatomic) NSString *EntityId

Discussion

Request Entity Id

When requesting metadata for a specific entity, set EntityId to the MBID for that entity.

Declared In

MBRequest.h

EntityType

@property (copy, nonatomic, readonly) NSString *EntityType

RequestType

Web Service Request Type

@property (copy, nonatomic, readonly) NSString *RequestType

Discussion

Web Service Request Type

Can be one of four strings, "GET", "POST", "PUT", "DELETE" * "GET" – regular get requests with xml response. * "POST" – post data to webservice, only tags, ratings, PUIDs, Barcodes,

          and ISRCs are accepted
  • "PUT" – add resource to collection
  • "DELETE" – remove resource from collection Default is "GET"

Declared In

MBRequest.h

Instance Methods

getParameterForKey:

- (NSString *)getParameterForKey:(NSString *)key

init

- (id)init

parameterString

- (NSString *)parameterString

removeParameterForKey:

- (void)removeParameterForKey:(NSString *)key

setParameter:forKey:

URL Parameters

- (void)setParameter:(NSString *)value forKey:(NSString *)key

Discussion

URL Parameters

Any additional URL parameters needed for your request. Most necessary parameters are handled by other methods in this object.

Declared In

MBRequest.h

submitRequestWithQuery:

- (void)submitRequestWithQuery:(MBQuery *)query

url

- (NSString *)url