簡體   English   中英

如何在Office 365中使用下划線搜索聯系人姓名?

[英]How to search the contact name with underscore in office 365?

我使用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它顯示為Array([errorNumber] => 400 [error] =>請求返回了HTTP錯誤400)

用雙引號括住您的字詞,例如:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM