List contacts
$client->accounts->contacts->list(string accountID, ?string cursor, ?Direction direction, ?int limit, ?string query): CursorSearch<User>
GET/v1/accounts/{accountID}/contacts/list
List merged contacts for a specific account with cursor-based pagination.
List contacts
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(accessToken: 'My Access Token');
$page = $client->accounts->contacts->list(
'accountID',
cursor: '1725489123456|c29tZUltc2dQYWdl',
direction: 'before',
limit: 1,
query: 'x',
);
var_dump($page);{
"hasMore": true,
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
],
"newestCursor": "newestCursor",
"oldestCursor": "oldestCursor"
}Returns Examples
{
"hasMore": true,
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
],
"newestCursor": "newestCursor",
"oldestCursor": "oldestCursor"
}