Online service providers usually want to know which apps are accessing their APIs, so they require each app to authenticate using a private API key.
Calliope is an open-source toolkit, so by definition we cannot distribute API keys ourselves. This section documents how to obtain your own API keys for some service providers and use them with Calliope.
You will need an API key to access Spotify. This is free of charge and is done by registering a Spotify application as follows:
Log in with a Spotify user account and register at the My Dashboard page.
Click ‘Create an app’. Choose a name and description that makes sense for you.
Click on the app name. Copy the client ID and client secret.
Click ‘Edit settings’ and add
http://localhost:8080/to the ‘Redirect URIs’ list.
You can now save this information to the Calliope config file used by the CLI, usually
$HOME/.config/calliope/calliope.conf. Here’s an example:
client-id = 044a880f7e989352f1d243e39648e653
client-secret = 54967576893ae3f9c3568a1977016e8d
redirect-uri = http://localhost:8080/
When you next run a cpe spotify subcommand, Calliope will authenticate with Spotify using a local HTTP server.