Proposal of new package Services_AudioScrobbler

From: Date: Thu, 19 Jan 2006 15:00:24 +0000
Subject: Proposal of new package Services_AudioScrobbler
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40988@lists.php.net to get a copy of this message
Hi there , i am asking for certain feedback on a package i am proposing. Its still very early, however I found there was no service class to the audioscrobbler webservice found here http://www.audioscrobbler.net/data/webservices/. Its not as straightforward as using SOAP and SOAP actions, but rather has query, param and filter markups like so http://ws.audioscrobbler.com/1.0/user/RJ/recenttracks.xml and http://ws.audioscrobbler.com/1.0/user/RJ/weeklytrackchart.xml?from=1114965332&to=1115570132 Ive put together an easy to use interface of most of the commands which are in class methods, there is also a run method to execute a command manually. For now its just returning the parsed xml or rss into arrays. Ive put together an example interface, however there is minimal error checking on an empty param if its needed therefore may break so just use the default. http://www.electroteque.org/pear/Services_AudioScrobbler/ Select recentracks and electroteque as a param. What is really strange is PHP 4.2.2 class methods is returning it all lowercase instead of recentTracks :\ but it seems to work anyway. The source code is here http://www.electroteque.org/pear/Services_AudioScrobbler/index.phps http://www.electroteque.org/pear/Services_AudioScrobbler/AudioScrobbler.phps Please dont be too harsh, but harsh feedback welcome, im new at proposing PEAR packages, some of the design is modelled from other Services packages. Let me know thanks.

« previous php.pear.dev (#40988) next »