将 Onedrive 连接到网页 [英] Connecting Onedrive to webpage

查看:61
本文介绍了将 Onedrive 连接到网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MS-Onedrive 企业帐户.我需要将我的 onedrive 连接到我的网页,以查看文件夹、下载文件等.如何使用 PHP 将 Onedrive 与我的网页集成?有人可以帮我吗?

I have a MS- Onedrive business account. I need to connect my onedrive to my webpage, to view folders, download files, etc. How can I intergrage Onedrive with my webpage using PHP? Can anyone help me?

推荐答案

如果您只想从 OneDrive 获取文件列表、文件夹位置和下载/更新文件,OneDrive 文件选择器可能是您的最佳选择.这使用了 JavaScript API,因此您需要将其合并到您的站点中.设置非常简单.在 https://account.live.com/developers/applications 注册您的应用程序以获取重要信息对用户进行身份验证/授权并调用服务(即 client_id、client_secret 等),然后查看 https://msdn.microsoft.com/en-us/library/dn659733.aspx.如果这是针对 OneDrive for Business,您需要查看 https://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations.希望有所帮助.

The OneDrive File picker might be your best bet if you simply want to get list of files, folder location, and downloand/update files from OneDrive. This uses the JavaScript API so you'll need to incorporate that into your site. Setup is pretty simple. Register your application at https://account.live.com/developers/applications to get important info to authenticate/authorize the user and make calls to the service (i.e. client_id, client_secret, etc.) then take a look at the sample code at https://msdn.microsoft.com/en-us/library/dn659733.aspx. If this is for OneDrive for Business, you want to look at https://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations. Hope that helps.

这篇关于将 Onedrive 连接到网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆