Music Advisor is a Java application that leverages the Spotify API to provide information about new releases, categories, playlists, and featured tracks. Users can authenticate with their Spotify credentials to access personalized recommendations.
Follow the steps below to set up and run the Music Advisor:
-
Clone the repository:
git clone https://github.com/rewindbytes/SpotifyMusicAdvisor cd SpotifyMusicAdvisor
-
Open the project in your preferred Java development environment.
-
Obtain your Spotify API credentials:
- Go to the Spotify Developer Dashboard.
- Create a new application to get your Client ID and Client Secret.
-
Update the APIAuthorization class with your credentials:
package advisor.API; public class APIAuthorization { public static String CLIENT_ID = "your-client-id"; public static String CLIENT_SECRET = "your-client-secret"; }
-
Build and run the project.
-
Run the application and enter your Spotify Client ID and Client Secret when prompted.
-
Follow the provided link to authenticate and obtain the authorization code.
-
After successful authentication, you can use the following commands:
new
: Get information about new releases.categories
: Get a list of available music categories.playlist <name>
: Get a playlist by name.featured
: Get featured playlists.
Enter your Spotify Client ID: your-client-id
Enter your Spotify Client Secret: your-client-secret
Authentication:
1. Run the 'auth' command, follow the link and authorize the application.
2. If successful, you will be notified and will be able to access the Spotify API.
Current Available commands:
1. new
2. categories
3. playlist <name>
4. featured
5. exit
Enter your choice: E.G 'featured'
...
This project is licensed under the MIT License.