Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I am attempting to access the DocViewer API. I'm getting stuck on authentication. I've tried various things, including the generic apikey, but I keep getting a 403 error.
I am writing in Python. The code looks like
testdocumenturl = "https://canvadocs.instructure.com/1/documents/" + vDocument[0].get('canvadoc_document_id')
payload = {}
headerhold = {"Authorization":apikey}
testdocumentlist = requests.request("GET", testdocumenturl,headers=headerhold,data=payload)
I'm looking for an example in python of proper authentication.
To participate in the Instructure Community, you need to sign up or log in:
Sign In