This is an Objective-C library which provides a basic access to the musiXmatch public API. It can be used both in MacOS X desktop application and in iPhoneOS applications. More information about the musiXmatch service can be found on their site: http://musixmatch.com/
- Include all files from the Classes directory in your project (if your are building as a static library, don't forget to add -load_all and -ObjC to linker flags)
- Edit the MusiXmatchService.h and set your API key
// Get a track
Track *track = [Track trackWithId:123];
NSString *lyrics = [track lyrics];
// Or use the service directly
MusiXmatchService *service = [MusiXmatchService sharedInstance];
NSArray *tracks = [service trackSearch:@"dreamer" numResults:10];
for (Track *track in tracks) {
NSLog(@"TrackID: %u, Artist: %@, Title: %@", track.mxmId, track.artist.name, track.name);
}
- Support for all API methods, e.g. track.chart.get and lyrics.feedback.post
- More robust handling of return codes and errors
- Asynchronous fetching support
This library is distributed under the MIT license. Copyright 2010 Roman Shterenzon The included JSON parser: Copyright 2009 Satoshi Numata, Ph.D.