Found this content helpful? Log in or sign up to leave a like!
DocViewer API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2025
03:28 PM
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.