XetaWays
XetaWays

Reputation: 21

Creating music player from spotify library c#

I am currently trying to create a Music player in C# I want my app to be able to start and pause music from Spotify, get access to the user's Playlist, and the Spotify song list. For that, I will obviously need to create a "connect with Spotify button" but I have currently no clues how to do that because the Spotify library isn't well documented If one of you could help me that would be great Thanks

Upvotes: 0

Views: 3882

Answers (1)

Kevin Guebert
Kevin Guebert

Reputation: 306

All of this can be done with the Spotify Web API.

  1. In order to "start and pause music from Spotify", use the PUT /me/player/play endpoint
  2. To "get access to the user's playlist", use the GET /users/{user_id}/playlists endpoint
  3. To get the "Spotify song list", use the GET /playlists/{playlist_id} endpoint for a specific playlist.

In terms of documentation, learn how to setup your app, set up authorization, and work with playlists.

There is also a list of libraries that are built on top of Spotify (even a couple .NET ones). The libraries often times have getting started tutorials for each language to help get up and running quickly. Alternatively, there looks to be a couple tutorials out there specifically for c#.

Upvotes: 4

Related Questions