Sha256: be90b0f85efcb7db55b71b6aab2ddb102f34a283b727324a11663920bce99355
Contents?: true
Size: 1.82 KB
Versions: 2
Compression:
Stored size: 1.82 KB
Contents
class Lastfm class Track < MethodCategory def add_tags(artist, track, tags) write_request('addTags', { :artist => artist, :track => track, :tags => tags }) end def ban(artist, track) write_request('ban', { :artist => artist, :track => track, }) end def get_info(artist, track, username = nil) request('getInfo', { :artist => artist, :track => track, :username => username }) end def get_similar(artist, track) request('getSimilar', { :artist => artist, :track => track, }) end def get_tags(artist, track) request_with_authentication('getTags', { :artist => artist, :track => track, }) end def get_top_fans(artist, track) request('getTopFans', { :artist => artist, :track => track, }) end def get_top_tags(artist, track) request('getTopTags', { :artist => artist, :track => track, }) end def love(artist, track) write_request('love', { :artist => artist, :track => track, }) end def remove_tag(artist, track, tag) write_request('removeTag', { :artist => artist, :track => track, :tag => tag }) end def search(artist, track, limit = nil, page = nil) request('search', { :artist => artist, :track => track, :limit => limit, :page => page }) end def share(artist, track, recipient, message = nil) write_request('share', { :artist => artist, :track => track, :recipient => recipient, :message => message }) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
claudiob-lastfm-0.0.1 | lib/lastfm/method_category/track.rb |
lastfm-0.0.1 | lib/lastfm/method_category/track.rb |