Search contacts
client.Accounts.Contacts.Search(ctx, accountID, query) (*AccountContactSearchResponse, error)
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.
Returns
Search contacts
package main
import (
"context"
"fmt"
"github.com/beeper/desktop-api-go"
)
func main() {
client := beeperdesktopapi.NewClient(
)
response, err := client.Accounts.Contacts.Search(
context.TODO(),
"accountID",
beeperdesktopapi.AccountContactSearchParams{
Query: "x",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Items)
}
{
"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"
}
]
}