Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传后的图片在一定时间后失效,获取的是短有效期的直链,并非api.onedrive.com的分享api地址 #19

Open
kagangtuya-star opened this issue Dec 8, 2024 · 4 comments

Comments

@harrisoff
Copy link
Owner

以前是用这种方式,从这里看到的。但是前两周这种方式拿到的链接突然用不了了,可能是微软给禁掉了。查了下文档改成了用这个 api,文档上好像没提会过期 🤔

@kagangtuya-star
Copy link
Author

image
基本上这几天传的图都炸了

这是几个参考的图链
狄乌token.FTEPKfV0q.png

拉普兰德.AZDj_Je2Br.webp

莱斯特尔·比尔德.vBKBL0wjTz.webp

@kagangtuya-star
Copy link
Author

kagangtuya-star commented Dec 11, 2024

Remarks
For OneDrive for Business and SharePoint, the Shares API always requires authentication and cannot be used to access anonymously shared content without a user context.
https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/shares_get?view=odsp-graph-online#remarks

似乎微软把新的api也给限制了,也许是authentication有过期时间。

@harrisoff
Copy link
Owner

难搞。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants