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.
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.
- Set the sub_domain and access_token first. Application will use default valuable if no new authorization account.
- Select function, list tickets or create a new one.
- After listing tickets, user can select one ticket to print detail inf, delete it, or update its status.
- Check authorization when verification fail.
- After listing tickets, the user can select one ticket, it must be an integer from 1 to count of tickets.
- Empty description of creation will induce post fail.