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.
- 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.
On the CLI, run: python -m unittest
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.
Choose your option:
Option 1 will display a list of tickets. The list will only display a maximum of 25 tickets at a time.
Option 2 will prompt user to select a ticket to view the details.
If an invalid ticket number is given, user will be brought back to the main menu.
Option 3 will exit the program.
The ticket viewer will keep prompting for an option if an invalid input is given.