Found this content helpful? Log in or sign up to leave a like!

DocViewer API

steven_hill
Community Participant

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.

Labels (1)