Git Product home page Git Product logo

musixmatch's Introduction

MusiXmatch for Objective-C

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/

Installation:

  1. 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)
  2. Edit the MusiXmatchService.h and set your API key

Example usage:

// 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);
}

TODO:

  1. Support for all API methods, e.g. track.chart.get and lyrics.feedback.post
  2. More robust handling of return codes and errors
  3. Asynchronous fetching support

License:

This library is distributed under the MIT license. Copyright 2010 Roman Shterenzon The included JSON parser: Copyright 2009 Satoshi Numata, Ph.D.

musixmatch's People

Contributors

romanbsd avatar

Stargazers

 avatar Rodrigo Lima avatar Javier Quevedo avatar Omar avatar Simone Leopizzi avatar tsumagana avatar Vaughan Rouesnel avatar Jose Antonio avatar Ivan Litsvinenka avatar  avatar Flori avatar SuperFancy avatar  avatar Mathieu avatar Willi Wu avatar

Watchers

Nirvana Tikku avatar  avatar James Cloos avatar  avatar

musixmatch's Issues

Cannot access Track object

Hi,

I'm trying the framework, and when call MusiXmatchService like you're explaining in the Read Me:
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);
}

I get this error from Xcode:
error: Semantic Issue: Property 'mxmId' cannot be found in forward class object 'Track *'

Any idea of why?

Thanks a lot,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.