Created
April 8, 2012 13:55
-
-
Save larsen/2337436 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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