下载网址无效 [英] Download URL is not working
问题描述
Hi Support,
我使用microsoft graph API获取sharepoint上的文件,API工作正常,我能够从APi获得响应但是下载API返回的url根本不起作用。我知道令牌的到期时间为1小时。但我在5分钟内使用了这个网址
。
你可以帮我解决这个问题。
您好,
您正在开发哪种类型的应用?
如果您使用的是SharePoint加载项/应用程序或OOB SharePoint页面,则可以通过SharePoint REST api下载文件。
https://mydomain.sharepoint.com/sites/Team/ _api / web / getfilebyserverrelativeurl('/ sites / Team / Shared Documents / AAA.docx')/
value
这是链接你的参考。
https://msdn.microsoft.com/en-us/library/ office / dn450841.aspx
如果您正在开发自己的应用,请确保您的应用获得身份验证通过在Azure AD中注册您的应用程序。
您可以查看以下链接以获取更多详细信息。
https://developer.microsoft.com/en-us/graph/ docs / concepts / auth_overview
最好的问候,
Lee
跨度>
Hi Support,
I used microsoft graph API for getting a files on sharepoint, API is working fine, I am able to get response from APi but the download url that is returned by API is not working at all. I know token has a expiry time of 1 hour. But I used this url under 5 minute.
can you please help me on this.
Hi,
Which type of app you’re developing?
If you’re using SharePoint add-in/app or OOB SharePoint pages, you could download files by SharePoint REST api.
https://mydomain.sharepoint.com/sites/Team/_api/web/getfilebyserverrelativeurl('/sites/Team/Shared Documents/AAA.docx')/
valueHere is the link for your reference.
https://msdn.microsoft.com/en-us/library/office/dn450841.aspx
If you’re developing your own app, make sure your app got authentication by registering your app in Azure AD.
You could check below link for more details.
https://developer.microsoft.com/en-us/graph/docs/concepts/auth_overview
Best Regards,
Lee
这篇关于下载网址无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!