onedrive php接口,关于 onedrive 的 api 调用

想用 onedrive 搭建一个个人网盘。

看了一些文档,好吧,当然技术不过关,基本没看懂。

于是乎,直接懒一点吧,用现成的程序,譬如:

oneindex.

好了,开始了报错之路:

一开始用的是学校的邮箱:

绑定微软账号的时候提示:

error_description=AADSTS650051%3a+Using+application+'OneDrive+API'+is+currently+not+supported+for+your+organization+stu.xxxx.edu.cn+because+it+is+in+an+unmanaged+state.+An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+stu.xxx.edu.cn+before+the+application+OneDrive+API+can+be+provisioned.%0D%0ATrace+ID%3a+8fd3bb22-96d0-xxxxx-bd1a-9b97d95d6500%0D%0ACorrelation+ID%3a+ab213287-b2f8-xxxxxx-8d0b-b21943c714d2%0D%0ATimestamp%3a+2019-07-19+15%3a15%3a04Z

然后看样子是账号的管理员没有授权?

那就用自己的个人账号吧:

继续报错:

( OneDrive_SCF ):AADSTS50020: User account '7428xxx@qq.com' from identity provider 'live.com' does not exist in tenant '默认目录' and cannot access the application '298004f7-xxxxxx-4d56-aba3-b058c0154fd2'(OneDrive API) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.

( oneIndex ) Authentication_MissingOrMalformed: Access Token missing or malformed.

看样子需要新建一个租户?:

然后绑定微软账号的时候,继续报错:

:e?error=access_denied&error_description=AADSTS650051%3a+Using+application+%27OneDrive+API%27+is+currently+not+supported+for+your+organization+lujiaxxx.com+because+it+is+in+an+unmanaged+state.+An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+lujianzxxxx.com+before+the+application+OneDrive+API+can+be+provisioned.%0d%0aTrace+ID%3a+5fce01ca-5b52-4a1d-xxxxxxx-8a37ec032000%0d%0aCorrelation+ID%3a+3611f686-xxxx-4299-811c-f314abdb3461%0d%0aTimestamp%3a+2019-07-20+09%3a42%3a10Z

想问一下谁用过 oneIndex 的可否告诉我一下这咋肥事....

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值