Skip to content

farahsamat/zen-code

Repository files navigation

ZENDESK TICKET VIEWER

This project is part of the Zendesk Software Engineering Intern selection process. The task is to build a ticket viewer that can display a list of tickets and view the details of each individual ticket.

Getting Started

  • Make sure Python 3 is installed.
  • Clone this repository: git clone https:://github.com/farahsamat/zen-code.git
  • Install dependencies: pip install -r requirements.txt
  • API authentication credentials: Rename .env.example to .env and populate it with the required login credentials.

Running the happy path tests

On the CLI, run: python -m unittest

Using the ticket viewer

The ticket viewer is a CLI. User needs to ensure that the script is saved in the working directory.

python ticket_viewer.py

User will be asked to enter login credentials.

Main menu

Choose your option:

Option 1 will display a list of tickets. The list will only display a maximum of 25 tickets at a time. Ticket list

Option 2 will prompt user to select a ticket to view the details. Ticket details

If an invalid ticket number is given, user will be brought back to the main menu.

Go back

Option 3 will exit the program.

The ticket viewer will keep prompting for an option if an invalid input is given.

Invalid input

Acknowledgments

Zendesk Ticket API Doc

About

Zendesk Ticket Viewer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages