简体   繁体   中英

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

I searched contact using office 365 API I got the value. One of the scenario it displayed error message. When I used '_' symbol in request it showed response returned as HTTP error 400.

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

No error. I changed the name james kumar into james_kumar. Now I tried the following query.

2) https://outlook.office.com/api/v2.0/Me/Contacts ?$search=james_kumar it showed as, Array ( [errorNumber] => 400 [error] => Request returned HTTP error 400 )

用双引号括住您的字词,例如:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM