Skip to content

Commit

Permalink
feat(me): added unfollowPlaylist
Browse files Browse the repository at this point in the history
  • Loading branch information
netlob committed Mar 2, 2022
1 parent 5dc3513 commit d1708b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/me/MeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,12 @@ export class MeManager extends Manager {

return res.data as CursorPagingObject<Playlist>;
}

/**
* @description Remove the current user as a follower of a playlist.
* @param {string} id The Spotify ID of the playlist to unfollow.
*/
async unfollowPlaylist(id: string): Promise<void> {
await this.http.delete(`/playlists/${id}/followers`, {});
}
}

0 comments on commit d1708b7

Please sign in to comment.