MBRequest Class Reference
| 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
-
EntityTypeproperty -
RequestTypeWeb Service Request Type
property -
EntityIdRequest Entity Id
property -
– setParameter:forKey:URL Parameters
-
– removeParameterForKey: -
– getParameterForKey: -
– submitRequestWithQuery: -
– url -
– parameterString
Other Methods
Properties
EntityId
Request Entity Id
@property (copy, nonatomic) NSString *EntityIdDiscussion
Request Entity Id
When requesting metadata for a specific entity, set EntityId to the MBID for that entity.
Declared In
MBRequest.hRequestType
Web Service Request Type
@property (copy, nonatomic, readonly) NSString *RequestTypeDiscussion
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