[ARCHIVED] Download File; use API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2019
09:51 AM
Newbie to group
How do I download a file using the API?
The file is a *.docx.
I see GET /api/v1/courses/:course_id/files/:id
That will give me the URL: https:.../files/id/download?download_frd=1&verifier=XXXX
but it wants to open in my browser, and then it wants me to OPEN in WORD.
I just want to save it (to my desktop or directory).
Thanks
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2019
10:56 AM
This worked: download.file(URL, outfilename, mode='wb')
I tested it with downloading both a *.pdf and *.docx.
Thanks all.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.