Skip to content

tnlx/kvcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KvCore

KvCore Go API client.

Usage

Create the API client using the token generated from the portal.

api := kvcore.API{
	Token: "",
}

Use the client to perform data retrieval, such as:

Fetch all contacts by hashtags

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)