Class: LastFM::Api::Playlist
- Inherits:
-
Object
- Object
- LastFM::Api::Playlist
- Defined in:
- lib/lastfm/api/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
12 13 14 15 |
# File 'lib/lastfm/api/playlist.rb', line 12 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.
22 23 24 25 |
# File 'lib/lastfm/api/playlist.rb', line 22 def create( params ) LastFM.requires_authentication LastFM.post( "playlist.create", params ) end |