WebService::8tracks::Session - 8tracks mix playing session
my $session = $api->create_session($mix_id); # start playing mix # to start playing my $res = $session->play; my $media_url = $res->{set}->{track}->{url}; ... # to play next track $res = $session->next; ... # to skip a track $res = $session->skip; if ($res->{set}->{at_end}) { # played all tracks, does not contain URL ... }
my $res = $session->play;
Start playing.
my $res = $session->next;
Go to next track. Calls play() if playing is not started.
my $res = $session->skip;
Skip to next track.
motemen <motemen@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::8tracks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::8tracks
CPAN shell
perl -MCPAN -e shell install WebService::8tracks
For more information on module installation, please visit the detailed CPAN module installation guide.