Passing API Key for file dump (python)

millsw
Community Novice

Hi, I am new to the Python requests library and I am trying to figure out how to make an api call to dump the data files from Canvas. I keep getting a 404 error, so I just want to make sure I'm forming the request correctly. I looked at the API guide that showed how a request is broken down, but I'm still not sure how to use those in the Python library. The documentation on this seems to be pretty sparse for beginners. Here's the information i know, I'm just not sure how to form the request (and if what I have tried is correct, why might I be getting a 404 back?). Thanks for any help! I realize this is partially/mostly a python question...

I am trying to figure out how to actually write the request code. Any help is appreciated!

KeyValue
HTTP_METHODGET
Host_Headerutexas.instructure.com
Content-Type_headertext/html?
Content-MD5_header?
/path/to/resource/api/account/self/dump
alphabetical=query&params=hereNone?
Date_header"Thur, 25 Jun 2015 08:12:31 GMT" format (but within 15 mins of request)
API_secretFrom the Canvas Data Portal