how can i make this request in python using requests library.
curl -H "Authorization: 563492ad6f91700001000001e4d5ce6a4c3986a01" "http://api.pexels.com/v1/search?query=people"
I tried using this code , but it not working for some reason.
from requests.auth import HTTPBasicAuth
requests.get('http://api.pexels.com/v1/search?query=sea&per_page=15&page=1', auth=HTTPBasicAuth('Authorization' : '563492ad6f91700001000001e4d5ce6a4c3986a01'))
Authorizationheader requires a token identifying the authentication scheme. Just tossing a token in there does not qualify.