Zendesk Ticket Viewer is a Node.js command line application that connects to the Zendesk API and views tickets.
Use npm to install modules used for this project.
npm i
In order to authenticate,
- Replace the values in
src/creds/sample_api_token.json
with your Zendesk domain, email and API token. - Rename the file from
sample_api_token.json
toapi_token.json
.
There are 6 commands, type them followed by a newline in the command line to trigger.
menu
: Print the menu of commands.1
: List all tickets (paginated).2
: View a single ticket.right arrow
: View the next page in the list.left arrow
: View the previous page in the list.quit
: Quit the application.
Unit test cases are created for all public interfaces. To run unit tests,
npm test