mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-22 22:26:27 +00:00
replace body ids with query parameter ids
This commit is contained in:
parent
6cb47c8e40
commit
c5485a7183
@ -98,7 +98,7 @@ namespace SpotifyAPI.Web
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
var statusCode = await API.Delete(SpotifyUrls.LibraryShows(), null, request.BuildBodyParams(), cancel).ConfigureAwait(false);
|
||||
var statusCode = await API.Delete(SpotifyUrls.LibraryShows(), request.BuildQueryParams(), null, cancel).ConfigureAwait(false);
|
||||
return statusCode == HttpStatusCode.OK;
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ namespace SpotifyAPI.Web
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
var statusCode = await API.Delete(SpotifyUrls.LibraryTracks(), null, request.BuildBodyParams(), cancel).ConfigureAwait(false);
|
||||
var statusCode = await API.Delete(SpotifyUrls.LibraryTracks(), request.BuildQueryParams(), null, cancel).ConfigureAwait(false);
|
||||
return statusCode == HttpStatusCode.OK;
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@ namespace SpotifyAPI.Web
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
||||
var statusCode = await API.Delete(SpotifyUrls.LibraryEpisodes(), null, request.BuildBodyParams(), cancel).ConfigureAwait(false);
|
||||
var statusCode = await API.Delete(SpotifyUrls.LibraryEpisodes(), request.BuildQueryParams(), null, cancel).ConfigureAwait(false);
|
||||
return statusCode == HttpStatusCode.OK;
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace SpotifyAPI.Web
|
||||
/// A comma-separated list of Spotify IDs for the shows to be deleted from the user’s library.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[BodyParam("ids")]
|
||||
[QueryParam("ids")]
|
||||
public IList<string> Ids { get; }
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ namespace SpotifyAPI.Web
|
||||
/// A comma-separated list of Spotify IDs for the shows to be deleted from the user’s library.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[BodyParam("ids")]
|
||||
[QueryParam("ids")]
|
||||
public IList<string> Ids { get; }
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace SpotifyAPI.Web
|
||||
/// </summary>
|
||||
/// <param name="ids">
|
||||
/// A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M.
|
||||
/// Maximum: 50 IDs.
|
||||
/// Maximum: 20 IDs.
|
||||
/// </param>
|
||||
public LibraryRemoveTracksRequest(IList<string> ids)
|
||||
{
|
||||
@ -20,10 +20,10 @@ namespace SpotifyAPI.Web
|
||||
|
||||
/// <summary>
|
||||
/// A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M.
|
||||
/// Maximum: 50 IDs.
|
||||
/// Maximum: 20 IDs.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[BodyParam("ids")]
|
||||
[QueryParam("ids")]
|
||||
public IList<string> Ids { get; }
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace SpotifyAPI.Web
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A comma-separated list of the Spotify IDs.
|
||||
/// A comma-separated list of the Spotify IDs.
|
||||
/// Maximum: 50 IDs.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
|
Loading…
Reference in New Issue
Block a user