[英]Office 365 REST API
I am new to office 365 API. 我是Office 365 API的新手。 My requirement is i need to connect to office365 using REST API.
我的要求是我需要使用REST API连接到office365。
For authentication purpose i have only 出于身份验证的目的,我只有
Email 电子邮件
Password 密码
As the fields , Can i generate a session with these? 作为字段,我可以使用这些字段生成会话吗? Or I need to collect the Client id , Secret and Return URL in authentication step it self?
还是我需要在身份验证步骤中自行收集客户端ID,秘密和返回URL?
I need to build a windows application not a web. 我需要构建Windows应用程序而不是Web。
Also after authentication is successful i need to write code for Add Delegate , Update Delegates for Exchange server. 同样,在身份验证成功之后,我需要为Exchange服务器的Add Delegate和Update Delegates编写代码。 Can i connect to these services by using RESt API?
我可以使用RESt API连接到这些服务吗?
Please help me to do these things. 请帮我做这些事情。
You can use the user's email/password to retrieve an OAuth token. 您可以使用用户的电子邮件/密码来检索OAuth令牌。 However you still need to register your application to obtain a client ID.
但是,您仍然需要注册您的应用程序以获得客户端ID。 Native applications (like a Windows app) don't use a client secret.
本机应用程序(例如Windows应用程序)不使用客户端密钥。 Take a look at the ADAL library for .NET .
看一下.NET的ADAL库 。 One of the overloads for
AcquireTokenAsync
take a UserCredential
object. AcquireTokenAsync
的重载AcquireTokenAsync
采用UserCredential
对象。
The REST APIs do not have any functionality to work with delegates. REST API没有任何与委托一起使用的功能。 You can use Exchange Web Services to work with delegates.
您可以使用Exchange Web服务与委托一起使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.