Total record count for an object type
client.Prism.Objects.Contacts.Count(ctx, params) (*PrismObjectContactCountResponse, error)
GET/v2/prism/{teamId}/contact/count
Returns the total number of records of this object type that the caller can see. Avoids the page-overshoot anti-pattern — clients no longer need to keep paging until has_more flips false to discover the total. Currently does not apply query filters; for a filtered total, pass include_total: true in a POST /query body.
Total record count for an object type
package main
import (
"context"
"fmt"
"github.com/micro-so/micro-sdk-go"
"github.com/micro-so/micro-sdk-go/option"
)
func main() {
client := micro.NewClient(
option.WithAPIKey("My API Key"),
option.WithTeamID("My Team ID"),
)
response, err := client.Prism.Objects.Contacts.Count(context.TODO(), micro.PrismObjectContactCountParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Total)
}
{
"total": 0
}Returns Examples
{
"total": 0
}