api - Header syntax in POST request (PYTHON) -


i'm doing api call in python spotify api , apparently need have header parameter called "authorization" take following value:

" base 64 encoded string contains client id , client secret key. field must have format: authorization: basic "

does know means, , exact python syntax be?

thanks

this basic http authrisation, http libraries convert authorized urlinto automatically

https://username:password@server/path 

saving having mess headers.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -