Pre-authenticated download URLs are only valid for a short period of time (a few minutes) and do not require an Authorization header to download. Many HTTP client libraries will automatically follow the 302 redirection and start downloading the file immediately. To download the contents of the file your application will need to follow the Location header in the response. This is the same URL available through the property on the DriveItem. Returns a 302 Found response redirecting to a pre-authenticated download URL for the file. Permissions (from least to most privileged)įiles.Read, Files.ReadWrite,, ,, įiles.Read, Files.ReadWrite,, į,, , To learn more, including how to choose permissions, see Permissions. One of the following permissions is required to call this API. Only driveItems with the file property can be downloaded. Download the contents of the primary stream (file) of a DriveItem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |