Welcome Guest, Not a member yet? Register   Sign In
Spotify metadata API and CodeIgniter
#1

[eluser]Codepeak[/eluser]
Hello members of the CodeIgniter community,

I had a work request today to develop a library for CodeIgniter that implements Spotify metadata API.

https://github.com/codepeak/CI_Spotify

How to use it in a controller:

Code:
<?php
$this->load->library('spotify');
$trackData = $this->spotify->search('1puny8tzEp22AhYnunNKxc','track');

print 'The song ' . $trackData->track . ' is a part of the album ' .
$trackData->album . ' and is performed by ' . $tackData->artist;

Every request is stored in the database so repeated requests isn't a big performance issue.

Comments / tips for improvements etc is appreciated!

Hope this will be useful to someone more than me :-)




Theme © iAndrew 2016 - Forum software by © MyBB