Skip to content
DocumentationAPI Reference

Save Audiobooks for Current User

me.audiobooks.save(**kwargs) -> void
PUT/me/audiobooks

Save one or more audiobooks to the current Spotify user's library.

ParametersExpand Collapse
ids: String

A comma-separated list of the Spotify IDs. For example: ids=18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ. Maximum: 50 IDs.

Save Audiobooks for Current User

require "spotted"

spotted = Spotted::Client.new(access_token: "My Access Token")

result = spotted.me.audiobooks.save(ids: "18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ,7iHfbu1YPACw6oZPAFJtqe")

puts(result)
Returns Examples