When you talk about some of the most popular music streaming services then Spotify is a name that is likely to emerge. Content-type, set with the value application/x-www-form-urlencoded to inform the server about the encoding of the body.With MusConv you can easily import/export playlists from Spotify!.Authorization, is a base64 encoded string that contains the client ID and client secret keys.We must also include the following HTTP headers: This value is used for validation only since there is no actual redirection. redirect_uri, must exactly match the same value sent on the user authorization request (previous step).code, is the authorization code returned on the previous step.grant_type, must always contain the value authorization_code.The body of the request must be encoded in application/x-www-form-urlencoded The code from the previous step, we need to make a POST request to the Now that we have the authorization code, we must exchange it for tokens. You have our proposal to generate randomly generated strings. state, a randomly generated string to protect against attacks such as cross-site request forgery.Īlthough state is not mandatory, is highly recommended including one. Since we are running the project locally, our redirect URL will point to localhost:3000/auth/callback since all petitions are handled from the frontend.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |