I would like to connect to the bricklink API but i am struggling with how to pass the auth parameter's into my get request. I've tried figuring it out from the documentation but to no avail.
bricklink API guide: https://www.bricklink.com/v3/api.page?page=general-notes
what i've tried:
import requests as r
headers = {
"Authorization: OAuth realm":"",
"oauth_consumer_key":"############",
"oauth_token":"AC40C8C32A1748E0AE1EFA13CCCFAC3A",
"oauth_signature_method":"HMAC-SHA1",
"oauth_signature":"0IeNpR5N0kTEBURcuUMGTDPKU1c%3D",
"oauth_timestamp":"1191242096",
"oauth_nonce":"kllo9940pd9333jh",
"oauth_version":"1.0"
}
response = r.get("https://api.bricklink.com/api/store/v1/orders?/direction:in/", headers=headers)
print(response)
raise ValueError('Invalid header name %r' % (header,)) ValueError: Invalid header name b'Authorization: OAuth realm'