replace body ids with query parameter ids

This commit is contained in:
Jonas Dellinger 2022-11-27 13:07:50 +01:00
parent 6cb47c8e40
commit c5485a7183
5 changed files with 9 additions and 9 deletions

View File

@ -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;
}

View File

@ -21,7 +21,7 @@ namespace SpotifyAPI.Web
/// A comma-separated list of Spotify IDs for the shows to be deleted from the users library.
/// </summary>
/// <value></value>
[BodyParam("ids")]
[QueryParam("ids")]
public IList<string> Ids { get; }
}
}

View File

@ -21,7 +21,7 @@ namespace SpotifyAPI.Web
/// A comma-separated list of Spotify IDs for the shows to be deleted from the users library.
/// </summary>
/// <value></value>
[BodyParam("ids")]
[QueryParam("ids")]
public IList<string> Ids { get; }
}
}

View File

@ -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; }
}
}