Library
#
SaveTracksSave one or more tracks to the current user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
ids | A list of the Spotify IDs | new List<String> { "3Hvu1pq89D4R0lyPBoujSv" } |
Returns a ErrorResponse
which just contains a possible error. (response.HasError()
and response.Error
)
Usage
#
SaveTrackSave one track to the current user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
id | A Spotify ID | "3Hvu1pq89D4R0lyPBoujSv" |
Returns a ErrorResponse
which just contains a possible error. (response.HasError()
and response.Error
)
Usage
#
GetSavedTracksGet a list of the songs saved in the current Spotify user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
[limit] | The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. | 20 |
[offset] | The index of the first object to return. Default: 0 (i.e., the first object) | 0 |
[market] | An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking. | DE |
Returns a Paging<SavedTrack>**, **SavedTrack
contains 2 properties, DateTime AddedAt
and FullTrack Track
Usage
#
RemoveSavedTracksRemove one or more tracks from the current user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
ids | A list of the Spotify IDs. | new List<String> { "3Hvu1pq89D4R0lyPBoujSv" } |
Returns a ErrorResponse
which just contains a possible error. (response.HasError()
and response.Error
)
Usage
#
CheckSavedTracksCheck if one or more tracks is already saved in the current Spotify user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
ids | A list of the Spotify IDs. | new List<String> { "3Hvu1pq89D4R0lyPBoujSv" } |
Returns a ListResponse<bool>
which contains a property, List<bool> List
Usage
#
SaveAlbumsSave one or more albums to the current user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
ids | A list of the Spotify IDs | new List<String> { "1cq06d0kTUnFmJHixz1RaF" } |
Returns a ErrorResponse
which just contains a possible error. (response.HasError()
and response.Error
)
Usage
#
SaveAlbumSave one album to the current user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
id | A Spotify ID | "1cq06d0kTUnFmJHixz1RaF" |
Returns a ErrorResponse
which just contains a possible error. (response.HasError()
and response.Error
)
Usage
#
GetSavedAlbumsGet a list of the albums saved in the current Spotify user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
[limit] | The maximum number of objects to return. Default: 20. Minimum: 1. Maximum: 50. | 20 |
[offset] | The index of the first object to return. Default: 0 (i.e., the first object) | 0 |
[market] | An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking. | DE |
Returns a Paging<SavedAlbum>
, SavedAlbum contains 2 properties, DateTime AddedAt
and FullAlbum Album
Usage
#
RemoveSavedAlbumsRemove one or more albums from the current user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
ids | A list of the Spotify IDs. | new List<String> { "1cq06d0kTUnFmJHixz1RaF" } |
Returns a ErrorResponse
which just contains a possible error. (response.HasError()
and response.Error
)
Usage
#
CheckSavedAlbumsCheck if one or more albums is already saved in the current Spotify user’s “Your Music” library.
Parameters
Name | Description | Example |
---|---|---|
ids | A list of the Spotify IDs. | new List<String> { "1cq06d0kTUnFmJHixz1RaF" } |
Returns a ListResponse<bool>
which contains a property, List<bool> List
Usage