API key and Request library, how to? (Python)
The simplest way is to just add the access_token parameter to your URL.
e.g. https://api.guildwars2.com/v2/account?access_token=ABCDEF-1234
Blackgate
Harbinger Tryssa – Revenant
Harbinger Tryssa – Revenant
If I had known that it was that simple. Thanks a lot.
From Requests documentation:
def get_jsonparsed_data(url):
# Receive contect as url returned as object"
response=requests.get(url, headers={'Authorization': 'Bearer D34D8E3F-...'})
return response.json()