Skip to content

FrozenFrost6/SpotifyAPI_WrapperService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Spotify API Wrapper Services

The wrapper contains to major parts:

Setup

Controller

Spotify

Setup

To use this application, we first need to host the controller service and then host spotify service on different ports. After hosting the services, we need to login and get the user access token. The login process is done securely by spotify's Oauth2 protocol. Once the access token is available, the user can make calls to the spotify service and manipulate playlists and tracks.

Controller

This service lets the user login and gets the spotify access token which is used to make all the spotify api calls. It also abstracts the spotify service api making it easier to call. The main services of the controller include:

  1. Login It is used to communicate with the spotify backend and initiates Oauth2 protocol. image

  2. Get spotify access token The spotify api backend automatically calls this api after authentication is verified. It returns the access token. image

Spotify

This service provides RESTful api to add, remove, and update playlists and songs. The access token obtained from the controller must be used to make these calls. The services include:

  1. Create public playlist

Create a public playlist in the user's spotify library image

  1. Create private playlist

Create a public playlist in the user's spotify library image

  1. Add tracks to playlist

Send spotify track object as request body. image

  1. Search for a song on Spotify

Search for a track on the spotify backend. It returns spotify track object as a result of the search. image

  1. Get user playlists

Gets a list of all the user's playlists in their library. It returns a list of all user playlists as an array of spotify playlist object. image

  1. Get playlist tracks

Gets all the tracks present in the specified playlist. It returns a list of all the tracks in the playlist as an array of spotify track object. image

  1. Remove playlist tracks

Removes all the specified tracks in the specified playlist. It accepts an array of spotify track objects. image

About

Uses Springboot to make a service that wraps Spotify API to handle playlist operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages