Skip to content

Instantly share code, notes, and snippets.

@larsen
Created April 8, 2012 13:55
Show Gist options
  • Save larsen/2337436 to your computer and use it in GitHub Desktop.
Save larsen/2337436 to your computer and use it in GitHub Desktop.
package Net::MusixMatch;
use Moose;
use Net::API::Abstract;
extends 'Net::API::Abstract';
set_domain 'http://api.musixmatch.com/ws/1.1/';
using Simple::Auth;
using JSON parser;
api_method 'track' => (
path => 'track.get',
params => [ qw/ track_id track_mbid format / ],
required => [ qw/ track_id / ]
);
package main;
my $client = API::Client::MusixMatch->new(
apikey => '...'
);
my $track = $client->track( track_id => 12345 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment