February 2018
Intermediate to advanced
456 pages
9h 56m
English
We have implemented the base functionality to authenticate and consume data from the Spotify REST API, but now we need to create a class that will make use of this functionality so we get the information that we need to be displayed in the client.
Our Spotify terminal client will perform the following actions:
The first thing we are going to add is a custom exception that we can raise, and no result is returned from the Spotify REST API. Create a new file called empty_results_error.py in the musicterminal/client directory with the following contents:
class EmptyResultsError(Exception): pass
To make it easier ...