KvCore Go API client.
Create the API client using the token generated from the portal.
api := kvcore.API{
Token: "",
}
Use the client to perform data retrieval, such as:
paginator := kvcore.Paginator{
PageSize: 100,
OnPagedSuccess: func(i interface{}) {
cts := i.([]kvcore.Contact)
// ...
},
OnPagedFailure: func(err error) {},
}
filter := ContactFilter{
Hashtags: []string{ "cool", "awesome" },
HashtagsAndOr: "AND",
AssignedAgentId: 000000,
}
api.ListContacts(filter, paginator)