Skip to content
Miguel Afonso Caetano edited this page Feb 22, 2023 · 4 revisions

Presenting Music Advisor for Java

Music Advisor is a a personal music advisor that makes preference-based suggestions and even shares links to new releases and featured playlists. This is done by interacting via command-line with Spotify's API (Application Programming Interface).

Based on a Hyperskill project, this application was developed in Java and integrates the major features offered by the API. The API itself is structured on simple REST (Representational State Transfer) principles, commonly used for communication with web services.

As to the program, it is organized in terms of the MVC (Model-View-Controller), an architectural pattern for building an application. based on its separation in thre different parts in order to achieve a greater level of scalability and maintainability.

List of command options available:

Command Description
auth In order to user the application, the user must authenticate his/her Spotify account. The open authorization protocol OAuth2 is here used for that.
featured Obtains a list of links to all Spotify featured playlists.
new Obtains a list of links to new albums with artists and links on Spotify.
categories Obtains a list of all available categories on Spotify (just their names).
playlists C_NAME, where C_NAME — name of category. Obtains a list of all the playlists of this category and their links on Spotify.
exit When the user wants to exit the application.

To navigate through each section's pages, the user can use the following commands:

Command Description
next Go to the next page.
prev Go to the previous page.
exit Exit the section and get back to the main menu.

So, I hope you enjoy the app but mostly the grooves...!!

Clone this wiki locally