【问题标题】:How to search the contact name with underscore in office 365?如何在office 365中搜索带下划线的联系人姓名?
【发布时间】:2015-12-09 22:54:50
【问题描述】:

我使用 office 365 API 搜索了联系人,我得到了值。它显示错误消息的一种情况。当我在请求中使用“_”符号时,它显示响应返回为 HTTP 错误 400。

例如: 1)https://outlook.office.com/api/v2.0/Me/Contacts?$search=james kumar

没有错误。 我将名字 james kumar 更改为 james_kumar。现在我尝试了以下查询。

2)https://outlook.office.com/api/v2.0/Me/Contacts?$search=james_kumar 它显示为, 大批 ( [错误编号] => 400 [错误] => 请求返回 HTTP 错误 400 )

【问题讨论】:

    标签: php api office365


    【解决方案1】:

    用双引号将您的术语括起来,例如:

    https://outlook.office.com/api/v2.0/Me/Contacts?$search="james_kumar"
    

    【讨论】:

      猜你喜欢
      • 2013-09-07
      • 1970-01-01
      • 1970-01-01
      • 2018-09-21
      • 1970-01-01
      • 1970-01-01
      • 2021-05-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多