Search contacts
$client->accounts->contacts->search(string accountID, string query): ContactSearchResponse
GET/v1/accounts/{accountID}/contacts
Search contacts on a specific account using merged account contacts, network search, and exact identifier lookup.
Parameters
accountID: string
Account ID this resource belongs to.
query: string
Text to search users by. Network-specific behavior.
Returns
Search contacts
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client();
$response = $client->accounts->contacts->search('accountID', query: 'x');
var_dump($response);{
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
]
}Returns Examples
{
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
]
}