How to authenticate using some sort of API key?
peerchemist opened this issue · 1 comments
peerchemist commented
This specific API is authenticated using API key which is placed into a request header. How to do so in this library?
How to update headers anyway?
wy-z commented
c = requests_openapi.Client()
c.requestor.headers.update({"Authorization": "token"}) # the type of 'c.requestor' is 'requests.Session'