问题描述
我正在使用Microsoft Java SDK for Graph API.
I am using the Microsoft Java SDK for Graph API.
我想通过其服务器相对路径访问站点,例如
I want to access a site via its server relative path like
获取 https://graph .microsoft.com/v1.0/sites/company.sharepoint.com:/sites/mysite:/
我只能在SDK中找到一些可以通过ID相对路径查找的东西吗?我没有ID
I can only find in the SDK something for find by ID apposed to relative path? I dont have the ID
我网站的网址是这样的 https://mycompanydomain.sharepoint.com/sites/my_site_name
The URL of my site is like this https://mycompanydomain.sharepoint.com/sites/my_site_name
推荐答案
解决方案实际上是在做sites.byId("company.sharepoint.com:/sites/mysite:").buildRequest().get();
The solution was actually to do sites.byId("company.sharepoint.com:/sites/mysite:").buildRequest().get();
这篇关于Microsoft Graph API Java SDK:获取带有其服务器相对URL的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!