Announcements

Help Wizard

Step 1

NEXT STEP

Client Side Application on top of Spotify's API

Client Side Application on top of Spotify's API

I am building a CLI on top of this Node.js API client: https://github.com/thelinmichael/spotify-web-api-node

 

From what I understand, I need 2 kinds of authetnications. One is for the app itself (described here), and one is user authentication (described in the repo, done with only clientId).

 

My question is - a user is installing the CLI, all is well - how should the CLI get the clientId from the user? That is still a bit unclear to me, must be missing something.

Reply
1 Reply

Hey @SockworkOrange, thanks for posting on the Spotify Community!

Great question! You need to create an app on: https://developer.spotify.com/dashboard/ after that, users can authenticate for your app through the Client ID. There's more information about authorization flows here: https://developer.spotify.com/documentation/general/guides/authorization-guide/

 

After the authentication the Accounts service will redirect back to the URL you've given. For example: the CLI can ask the user to authenticate using the authorization link and you can redirect to a webpage that simply gives the token that it'll get from Spotify. The user can copy and paste this in their Terminal to continue.

 

Let me know if you have any questions!

 

Have a great day,

Hubo

HuboSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts