diff --git a/SpotifyAPI.Web/SpotifyWebAPI.cs b/SpotifyAPI.Web/SpotifyWebAPI.cs
index f071fea1..427db959 100644
--- a/SpotifyAPI.Web/SpotifyWebAPI.cs
+++ b/SpotifyAPI.Web/SpotifyWebAPI.cs
@@ -822,7 +822,6 @@ namespace SpotifyAPI.Web
///
/// Add the current user as a follower of a playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
///
/// The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private
/// status, as long as you know its playlist ID.
@@ -839,13 +838,12 @@ namespace SpotifyAPI.Web
{
{"public", showPublic}
};
- return UploadData(_builder.FollowPlaylist(ownerId, playlistId, showPublic), body.ToString(Formatting.None), "PUT");
+ return UploadData(_builder.FollowPlaylist(playlistId), body.ToString(Formatting.None), "PUT");
}
///
/// Add the current user as a follower of a playlist asynchronously.
///
- /// The Spotify user ID of the person who owns the playlist.
///
/// The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private
/// status, as long as you know its playlist ID.
@@ -856,25 +854,24 @@ namespace SpotifyAPI.Web
///
///
/// AUTH NEEDED
- public Task FollowPlaylistAsync(string ownerId, string playlistId, bool showPublic = true)
+ public Task FollowPlaylistAsync(string playlistId, bool showPublic = true)
{
JObject body = new JObject
{
{"public", showPublic}
};
- return UploadDataAsync(_builder.FollowPlaylist(ownerId, playlistId, showPublic), body.ToString(Formatting.None), "PUT");
+ return UploadDataAsync(_builder.FollowPlaylist(playlistId), body.ToString(Formatting.None), "PUT");
}
///
/// Remove the current user as a follower of a playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist that is to be no longer followed.
///
/// AUTH NEEDED
- public ErrorResponse UnfollowPlaylist(string ownerId, string playlistId)
+ public ErrorResponse UnfollowPlaylist(string playlistId)
{
- return UploadData(_builder.UnfollowPlaylist(ownerId, playlistId), "", "DELETE");
+ return UploadData(_builder.UnfollowPlaylist(playlistId), "", "DELETE");
}
///
@@ -884,69 +881,65 @@ namespace SpotifyAPI.Web
/// The Spotify ID of the playlist that is to be no longer followed.
///
/// AUTH NEEDED
- public Task UnfollowPlaylistAsync(string ownerId, string playlistId)
+ public Task UnfollowPlaylistAsync(string playlistId)
{
- return UploadDataAsync(_builder.UnfollowPlaylist(ownerId, playlistId), "", "DELETE");
+ return UploadDataAsync(_builder.UnfollowPlaylist(playlistId), "", "DELETE");
}
///
/// Check to see if one or more Spotify users are following a specified playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist.
/// A list of Spotify User IDs
///
/// AUTH NEEDED
- public ListResponse IsFollowingPlaylist(string ownerId, string playlistId, List ids)
+ public ListResponse IsFollowingPlaylist(string playlistId, List ids)
{
if (!UseAuth)
throw new InvalidOperationException("Auth is required for IsFollowingPlaylist");
- string url = _builder.IsFollowingPlaylist(ownerId, playlistId, ids);
+ string url = _builder.IsFollowingPlaylist(playlistId, ids);
return DownloadList(url);
}
///
/// Check to see if one or more Spotify users are following a specified playlist asynchronously.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist.
/// A list of Spotify User IDs
///
/// AUTH NEEDED
- public Task> IsFollowingPlaylistAsync(string ownerId, string playlistId, List ids)
+ public Task> IsFollowingPlaylistAsync(string playlistId, List ids)
{
if (!UseAuth)
throw new InvalidOperationException("Auth is required for IsFollowingPlaylist");
- string url = _builder.IsFollowingPlaylist(ownerId, playlistId, ids);
+ string url = _builder.IsFollowingPlaylist(playlistId, ids);
return DownloadListAsync(url);
}
///
/// Check to see if one or more Spotify users are following a specified playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist.
/// A Spotify User ID
///
/// AUTH NEEDED
- public ListResponse IsFollowingPlaylist(string ownerId, string playlistId, string id)
+ public ListResponse IsFollowingPlaylist( string playlistId, string id)
{
- return IsFollowingPlaylist(ownerId, playlistId, new List { id });
+ return IsFollowingPlaylist(playlistId, new List { id });
}
///
/// Check to see if one or more Spotify users are following a specified playlist asynchronously.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist.
/// A Spotify User ID
///
/// AUTH NEEDED
- public Task> IsFollowingPlaylistAsync(string ownerId, string playlistId, string id)
+ public Task> IsFollowingPlaylistAsync(string playlistId, string id)
{
- return IsFollowingPlaylistAsync(ownerId, playlistId, new List { id });
+ return IsFollowingPlaylistAsync( playlistId, new List { id });
}
#endregion Follow
diff --git a/SpotifyAPI.Web/SpotifyWebBuilder.cs b/SpotifyAPI.Web/SpotifyWebBuilder.cs
index 47e913a5..a4ba513f 100644
--- a/SpotifyAPI.Web/SpotifyWebBuilder.cs
+++ b/SpotifyAPI.Web/SpotifyWebBuilder.cs
@@ -396,45 +396,38 @@ namespace SpotifyAPI.Web
///
/// Add the current user as a follower of a playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
///
/// The Spotify ID of the playlist. Any playlist can be followed, regardless of its public/private
/// status, as long as you know its playlist ID.
///
- ///
- /// If true the playlist will be included in user's public playlists, if false it will remain
- /// private.
- ///
///
/// AUTH NEEDED
- public string FollowPlaylist(string ownerId, string playlistId, bool showPublic = true)
+ public string FollowPlaylist(string playlistId)
{
- return $"{APIBase}/users/{ownerId}/playlists/{playlistId}/followers";
+ return $"{APIBase}/playlists/{playlistId}/followers";
}
///
/// Remove the current user as a follower of a playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist that is to be no longer followed.
///
/// AUTH NEEDED
- public string UnfollowPlaylist(string ownerId, string playlistId)
+ public string UnfollowPlaylist(string playlistId)
{
- return $"{APIBase}/users/{ownerId}/playlists/{playlistId}/followers";
+ return $"{APIBase}/playlists/{playlistId}/followers";
}
///
/// Check to see if one or more Spotify users are following a specified playlist.
///
- /// The Spotify user ID of the person who owns the playlist.
/// The Spotify ID of the playlist.
/// A list of Spotify User IDs
///
/// AUTH NEEDED
- public string IsFollowingPlaylist(string ownerId, string playlistId, List ids)
+ public string IsFollowingPlaylist(string playlistId, List ids)
{
- return $"{APIBase}/users/{ownerId}/playlists/{playlistId}/followers/contains?ids={string.Join(",", ids)}";
+ return $"{APIBase}/playlists/{playlistId}/followers/contains?ids={string.Join(",", ids)}";
}
#endregion Follow