下载网址无效 [英] Download URL is not working

查看:91
本文介绍了下载网址无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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')/


value

Here 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆