=-登录Office 365 ContactFolders API调用不起作用 [英] =-sign in Office 365 ContactFolders API call not working

查看:166
本文介绍了=-登录Office 365 ContactFolders API调用不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Outlook.office365.com/EWS/OData/上使用Office 365 REST API(使用基本身份验证).

I am consuming the Office 365 REST API (using basic authentication) at outlook.office365.com/EWS/OData/.

对outlook.office365.com/ews/odata/Me/ContactFolders('Contacts')的调用返回了Contacts文件夹的'root'中的所有Contacts.但我想吸引所有用户-也在(子)文件夹中.

The call to outlook.office365.com/ews/odata/Me/ContactFolders('Contacts') is returning all of the Contacts in the 'root' of the Contacts folder. But I would like to get all users - also in the (sub)folders.

我可以使用以下方法获取联系人"中的文件夹列表: outlook.office365.com/EWS/OData/Users('E-MAILACCOUNT')/ContactFolders('IDOFTHECONTACTFOLDER')/ChildFolders

I can get a list of folders in Contacts using: outlook.office365.com/EWS/OData/Users('E-MAILACCOUNT')/ContactFolders('IDOFTHECONTACTFOLDER')/ChildFolders

这将显示所有文件夹,如下所示:

This shows all of the folders, like this:

  {
      "Contacts@odata.navigationLink": "https://outlook.office365.com/EWS/OData/Users('XX')/ContactFolders('...WCSksCdABO4VgFTAAA=')/Contacts"

现在的问题是,当我调用此URL时,尾随=替换为%3D.

Now the problem is, when I call this URL, the trailing = is replaced by %3D.

我可以在返回的JSON消息中看到它,内容为:

I can see this in the returning JSON message, it reads:

{
  "@odata.context": "https://outlook.office365.com/EWS/OData/$metadata#Users('E-MAIL')/ContactFolders('...ksCdABO4VgFTAAA%3D')/Contacts",

下面,它从Contacts文件夹的根目录返回所有结果,而不是我请求的该文件夹中的Contacts.

Below it returns ALL of the results from the root of the Contacts folder and NOT the Contacts in this folder I requested.

我认为API找不到我请求的文件夹ID,因为结尾的=是文件夹ID的一部分,已由%3D代替.

I think the API cannot find the folder ID I am requesting because the trailing =, part of the folder ID, is replaced by %3D.

有什么办法可以解决这个问题?

Is there any way to fix this?

非常感谢!

推荐答案

感谢您尝试使用API​​.这是不遵守子文件夹过滤条件的错误.我们正在跟踪以解决此问题.

Thanks for trying the API. This is a bug where the filter on subfolders is not being respected. We are tracking to fix this soon.

这篇关于=-登录Office 365 ContactFolders API调用不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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