Obtain the Authorization Code Access Token
Get the authorization code access token required to access the Spotify API endpoints.
We'll cover the following
As we discussed earlier, for all the endpoints where we access a user's resources, we need to use either the authorization code, the authorization code with PKCE, or the implicit grant flow to get the access token. In this lesson, we’ll learn how to get the access token using the authorization code flow.
Authorization code
The workflow needed to get the authorization code access token is as follows:
https://accounts.spotify.com/authorize
with some query parameters. The user is asked to log in to Spotify using a dialog box.https://accounts.spotify.com/api/token
and some query parameters.Get hands-on with 1200+ tech skills courses.