List contacts
client.Accounts.Contacts.List(ctx, accountID, query) (*CursorSearch[User], error)
GET/v1/accounts/{accountID}/contacts/list
List merged contacts for a specific account with cursor-based pagination.
Parameters
accountID string
Account ID this resource belongs to.
Returns
List contacts
package main
import (
"context"
"fmt"
"github.com/beeper/desktop-api-go"
)
func main() {
client := beeperdesktopapi.NewClient(
)
page, err := client.Accounts.Contacts.List(
context.TODO(),
"accountID",
beeperdesktopapi.AccountContactListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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"
}