We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f63559 commit cc1570eCopy full SHA for cc1570e
CanvasSync/utilities/instructure_api.py
@@ -136,14 +136,13 @@ def download_item_information(self, url):
136
url = url.split(self.settings.domain)[-1]
137
return self.get_json(url)
138
139
- def download_file_payload(self, donwload_url):
+ def download_file_payload(self, download_url):
140
"""
141
Returns the payload of a specified file in the Canvas system
142
143
donwload_url : string | The API download url pointing to a file in the Canvas system
144
145
- url = donwload_url.split(self.settings.domain)[-1]
146
- return self._get(url).content
+ return requests.get(download_url).content
147
148
def get_assignments_in_course(self, course_id):
149
0 commit comments