import requests
url = 'https://api.assembla.com/v1/spaces'
API_KEY = "API_KEY"
API_SECRET = "API_SECRET "
resp = requests.get(url, auth=(API_KEY, API_SECRET))
print(resp.status_code)
I keep getting 401. I'm not sure how to use an API_KEY and an API_SECRET to download a pdf file (let's call it test.pdf) from an assembla url given to me. Any help appreciated.