Zend_Service_AudioscrobblerIntroductionZend_Service_Audioscrobbler is a simple API for using the Audioscrobbler REST Web Service. The Audioscrobbler Web Service provides access to its database of Users, Artists, Albums, Tracks, Tags, Groups, and Forums. The methods of the Zend_Service_Audioscrobbler class begin with one of these terms. The syntax and namespaces of the Audioscrobbler Web Service are mirrored in Zend_Service_Audioscrobbler. For more information about the Audioscrobbler REST Web Service, please visit the » Audioscrobbler Web Service site. UsersIn order to retrieve information for a specific user, the setUser() method is first used to select the user for which data are to be retrieved. Zend_Service_Audioscrobbler provides several methods for retrieving data specific to a single user:
Example #1 Retrieving User Profile Information In this example, we use the setUser() and userGetProfileInformation() methods to retrieve a specific user's profile information:
Example #2 Retrieving a User's Weekly Artist Chart
ArtistsZend_Service_Audioscrobbler provides several methods for retrieving data about a specific artist, specified via the setArtist() method:
Example #3 Retrieving Related Artists
TracksZend_Service_Audioscrobbler provides two methods for retrieving data specific to a single track, specified via the setTrack() method:
TagsZend_Service_Audioscrobbler provides several methods for retrieving data specific to a single tag, specified via the setTag() method:
GroupsZend_Service_Audioscrobbler provides several methods for retrieving data specific to a single group, specified via the setGroup() method:
ForumsZend_Service_Audioscrobbler provides a method for retrieving data specific to a single forum, specified via the setForum() method:
|
|