Sharepoint REST API调用。禁止的403

时间:2018-06-19 12:37:31

标签: rest api sharepoint http-status-code-403

我从以下位置获得了Bearer_realm和客户端ID “ https://abcdev.sharepoint.com/_vti_bin/client.svc/

然后我得到了来自的访问令牌 “ https://accounts.accesscontrol.windows.net/” + Bearer_realm +“ / tokens / OAuth / 2”

现在,我尝试调用此api “ / _api / web / GetFileByServerRelativeUrl('https://abcdev.sharepoint.com/sites/def/Shared文档/abcd.docx')/ $ value”

我得到了403未经授权的异常。

https://abcdev.sharepoint.com/_layouts/15/appinv.aspx中,我给了  范围为“ http://sharepoint/content/sitecollection/web” 右为“ FullControl”

作为访问权限。

范围应为“ http://sharepoint/content/tenant”吗?

我要去哪里错了?

0 个答案:

没有答案