Skip to content

YixiaoTang/Zendesk

Repository files navigation

Zendesk coding challenge

This project based on Zendesk API to implement two basic functions: list all tickets in one specific account and create a new ticket.
After listing all tickets, user can delete or update one of them.

files

main.rb Main file, use ListTickets and CreateTicket.
get_tickets.rb GetTickets class for get request.
create_ticket.rb Include CreateTicket class.
delete_ticket.rb Include DeleteTicket class to delete one ticket by id.
update_ticket.rb Include UpdateTicket class to update status of one ticket by id.
list_ticket.rb Combine GetTickets, DeleteTicket and UpdateTicket as sub function.
test_files are test files for classes.

How to run

  1. Set the sub_domain and access_token first. Application will use default valuable if no new authorization account.
  2. Select function, list tickets or create a new one.
  3. After listing tickets, user can select one ticket to print detail inf, delete it, or update its status.
  4. Check authorization when verification fail.

Input format

  1. After listing tickets, the user can select one ticket, it must be an integer from 1 to count of tickets.
  2. Empty description of creation will induce post fail.

Unexpected input

Use response status code to verify token.

Unexpected input will alert and ask for re-enter.

Two Screenshots to show invalid input in the application.

Releases

No releases published

Packages

No packages published

Languages