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

asked May 31, 2015 at 2:03
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.

answered May 31, 2015 at 2:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.