Skip to content

vofque/zen-ticket-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple Zendesk ticket loader.

It periodically loads batches of tickets by clients in parallel and sends them in a stream for further processing.

Usage

Build:

gradle build

Launch:

gradle run

Add client and start loading tickets from current moment:

PUT http://localhost:8080/client
{
    "id": "<client-id>",
    "domain": "<client-domain>",
    "token": "<zendesk-access-token>"
}

Add client and start loading tickets from a specific start time:

PUT http://localhost:8080/client
{
    "id": "<client-id>",
    "domain": "<client-domain>",
    "token": "<zendesk-access-token>",
    "lastUpdateTime": <start-time>
}

Add client and start loading tickets with a specific cursor:

PUT http://localhost:8080/client
{
    "id": "<client-id>",
    "domain": "<client-domain>",
    "token": "<zendesk-access-token>",
    "cursor": "<cursor>"
}

Get lateness of a client stream in seconds (how far behind real time it is):

GET http://localhost:8080/client/<client-id>/lateness

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages