mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +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));
|
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;
|
return statusCode == HttpStatusCode.OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ namespace SpotifyAPI.Web
|
|||||||
{
|
{
|
||||||
Ensure.ArgumentNotNull(request, nameof(request));
|
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;
|
return statusCode == HttpStatusCode.OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ namespace SpotifyAPI.Web
|
|||||||
{
|
{
|
||||||
Ensure.ArgumentNotNull(request, nameof(request));
|
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;
|
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.
|
/// A comma-separated list of Spotify IDs for the shows to be deleted from the user’s library.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[BodyParam("ids")]
|
[QueryParam("ids")]
|
||||||
public IList<string> Ids { get; }
|
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.
|
/// A comma-separated list of Spotify IDs for the shows to be deleted from the user’s library.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[BodyParam("ids")]
|
[QueryParam("ids")]
|
||||||
public IList<string> Ids { get; }
|
public IList<string> Ids { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace SpotifyAPI.Web
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids">
|
/// <param name="ids">
|
||||||
/// A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M.
|
/// A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M.
|
||||||
/// Maximum: 50 IDs.
|
/// Maximum: 20 IDs.
|
||||||
/// </param>
|
/// </param>
|
||||||
public LibraryRemoveTracksRequest(IList<string> ids)
|
public LibraryRemoveTracksRequest(IList<string> ids)
|
||||||
{
|
{
|
||||||
@ -20,10 +20,10 @@ namespace SpotifyAPI.Web
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M.
|
/// A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M.
|
||||||
/// Maximum: 50 IDs.
|
/// Maximum: 20 IDs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value></value>
|
/// <value></value>
|
||||||
[BodyParam("ids")]
|
[QueryParam("ids")]
|
||||||
public IList<string> Ids { get; }
|
public IList<string> Ids { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user