Last.FM Datasource v0.3 – Ready for a testdrive
I just finished my work on the datasource. Well.. finished as in: the part of being able to auth and do stuff works now. So it is good for a spin. I also stripped most of my doc comments and compiled a small wiki page that should help you getting it up and running.
I also deployed a small demo app and finished it today (as far as a demo app should go). You can see it in action here. The whole thing is just a single controller with no database whatsoever. Just the source, model and some html – and caching, of course.
If you authorize the app to work on your behalf you can add tags to artists. So if you want to test that, you authorize, search for a artist and type in some tags.. Everything else does not need auth. I might extend it to test more functions that require auth, but as with all APIs: if you got it working on one method, it will probably work on all others too.
The most recent version is 0.3 and available here: lastfm_source.php
Enjoy!


Datasources sind echt klasse und in Verbindung mit Diensten macht es richtig Spass. Ich wusste bisher gar nicht, dass Last.fm eine API hat. Muss ich mir doch mal bei Gelegenheit näher anschauen.
ups deutsch ist hier in den Kommentaren hoffentlich ok ?
Good stuff Kjell. Besides being what looks like a great LastFM datasource for Cake, it’s a great example of the (slightly modified) strategy pattern in PHP.
I think this is an excellent model for anyone attempting to create a clean, comprehensive interface to an external API.
Hey. Great work!
Any plans to maintain it further? I mean all links in this post are broken.