0

I'm doing an API call in Python for the Spotify API and apparently I need to have the header parameter called "Authorization" take the following value:

" Base 64 encoded string that contains the client ID and client secret key. The field must have the format: Authorization: Basic "

Does anyone know what that means, and what the exact Python syntax for that would be?

Thanks

1

1 Answer 1

0

this is basic HTTP authrisation, most HTTP libraries will convert an authorized URLinto that automatically

https://USERNAME:PASSWORD@server/path

saving you from having to mess with headers.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.