From ab05201bd223b627709af92dd5ff969b261c4812 Mon Sep 17 00:00:00 2001 From: Jimmy Appelt Date: Fri, 6 Nov 2015 15:15:14 +0100 Subject: [PATCH] Changed UploadData query to _builder --- SpotifyAPI/Web/SpotifyWebAPI.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SpotifyAPI/Web/SpotifyWebAPI.cs b/SpotifyAPI/Web/SpotifyWebAPI.cs index e4771f38..b7252870 100644 --- a/SpotifyAPI/Web/SpotifyWebAPI.cs +++ b/SpotifyAPI/Web/SpotifyWebAPI.cs @@ -812,7 +812,7 @@ namespace SpotifyAPI.Web public ErrorResponse SaveTracks(List ids) { JArray array = new JArray(ids); - return UploadData(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "PUT") ?? new ErrorResponse(); + return UploadData(_builder.SearchItems(array.ToString(Formatting.None), "PUT") ?? new ErrorResponse()); } /// @@ -824,7 +824,7 @@ namespace SpotifyAPI.Web public Task SaveTracksAsync(List ids) { JArray array = new JArray(ids); - return UploadDataAsync(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "PUT") ?? Task.FromResult(new ErrorResponse()); + return UploadDataAsync(_builder.SearchItems(array.ToString(Formatting.None)), "PUT") ?? Task.FromResult(new ErrorResponse()); } /// @@ -888,7 +888,7 @@ namespace SpotifyAPI.Web public ErrorResponse RemoveSavedTracks(List ids) { JArray array = new JArray(ids); - return UploadData(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "DELETE") ?? new ErrorResponse(); + return UploadData(_builder.SearchItems(array.ToString(Formatting.None), "DELETE") ?? new ErrorResponse(); } /// @@ -900,7 +900,7 @@ namespace SpotifyAPI.Web public Task RemoveSavedTracksAsync(List ids) { JArray array = new JArray(ids); - return UploadDataAsync(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "DELETE") ?? Task.FromResult(new ErrorResponse()); + return UploadDataAsync(_builder.SearchItems(array.ToString(Formatting.None), "DELETE") ?? Task.FromResult(new ErrorResponse()); } ///