Class: LastFM::Playlist
- Inherits:
-
Object
- Object
- LastFM::Playlist
- Defined in:
- lib/lastfm/playlist.rb
Class Method Summary collapse
-
.add_track(params) ⇒ Object
Add a track to a Last.fm user’s playlist.
-
.create(params) ⇒ Object
Create a Last.fm playlist on behalf of a user.
-
.fetch(params) ⇒ Object
deprecated
Deprecated.
documentation removed from last.fm/api, but method calls still work
Class Method Details
.add_track(params) ⇒ Object
Add a track to a Last.fm user’s playlist
11 12 13 14 |
# File 'lib/lastfm/playlist.rb', line 11 def add_track( params ) LastFM.requires_authentication LastFM.post( "playlist.addTrack", params ) end |
.create(params) ⇒ Object
Create a Last.fm playlist on behalf of a user.
21 22 23 24 |
# File 'lib/lastfm/playlist.rb', line 21 def create( params ) LastFM.requires_authentication LastFM.post( "playlist.create", params ) end |