几个月前,我在我的网站上集成了Office365签名。(我使用office365帐户登录我的网站)。
现在我想包括Onenote功能,比如create页面,create部分等等。
我研究了通过office365登录您可以访问Onenote的可能性。
首先,我修改了我们以前在蔚蓝上使用的应用程序(包括app中的onenote )。
使用office365登录很好,但是当我尝试与onenote通信时,我总是得到未经授权的代码(401)。
我将这个库Client.php用于office365客户端。当我试图进入
其范围是:
stdClass Object
(
[token_type] => Bearer
[expires_in] => 3599
[scope] => Contacts.Read Mail.Read User.Read User.Read.All
[expires_on] => 1444251788
[not_before] => 1444247888
[resource] => https://graph.microsoft.com/
[access_token] => access_token here
[refresh_token] => refresh_token here
[id_token] => id_token here
)我没有看到范围Onenote范围(我包括在蓝色应用程序)。
谢谢
发布于 2015-10-09 06:43:26
问题出在资源网址上。要与onenote通信,我们需要使用资源=> https://onenote.com/
谢谢
发布于 2015-10-08 12:07:57
尝试在github中使用Microsoft中的OneNote API。它是最新的o365 api最近的变化。
https://github.com/OneNoteDev/OneNoteAPISamplePHP
此外,您还可以使用以下控制台测试代码:cc=1
下面是关于如何使用此控制台的教程:
https://msdn.microsoft.com/en-us/library/office/dn575419.aspx
希望这能有所帮助。
https://stackoverflow.com/questions/33002134
复制相似问题