I am querying an api with postman which requires the following header/auth to set
How do I set these params programmatically in requests library or some other library
I am querying an api with postman which requires the following header/auth to set
How do I set these params programmatically in requests library or some other library
Answering my own question.. as none of the suggestions mentioned in the comments worked for me.
headers = {
'X-API-KEY': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)