Hi,
In the doc,driveItem: preview mention that driveItem: preview request generates a short-lived URL, I would like to know what is the expiration of the link (hour, day, week, month, etc..).
More details and to give things into context, in our web app we enable users to upload files, and also upload from their cloud drives, such as Google Drive, DropBox, and OneDrive.
Most of our users are using OneDrive for businesses.
I tried using the request: POST /drives/{driveId}/items/{itemId}/preview , after the user selects the file from the file picker, and I using the getUrl to embed the file into an iframe.(the getURL as src)
I noticed that the URL contains access_token, and I deleted it before saving it, and I noticed that the iframe still works fine, and allows only users with permission to see the file, is this is a good usage of that?
Are there any pitfalls that I didn't notice?
Thank's