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
Programming Novice
391 silver badge3 bronze badges
-
Have a look at this: stackoverflow.com/questions/27554994/…Alex Woolford– Alex Woolford2015年05月31日 02:45:58 +00:00Commented May 31, 2015 at 2:45
1 Answer 1
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
Jasen
12.5k2 gold badges37 silver badges50 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py