python-freshdesk icon indicating copy to clipboard operation
python-freshdesk copied to clipboard

Many functions, yet little automation

Open DeadDude-glitch opened this issue 1 year ago • 0 comments

Thank You

I revised all the code to make sure nothing is malicious there, thanks guys for the great work as it helped me too much!

Idea / Issue / Suggestion

Creating functions to cover the each API endpoint features is great, and I was able to utilize this to automate a lot of my work, yet I am afraid that it's not simple for usage. we are missing abstraction.

For example lets say you need to get a ticket, the ticket's notes, and description. You simply cannot:

api = TicketAPI("your_url.com")
ticket = api.get_ticket("some_ticket_id")
print(ticket.description)
print(ticket.comments)

but you have to interact with each API, to request these data over the internet and rebuild/collect all the data you wanted about the ticket in a python object.

image

DeadDude-glitch avatar Dec 22 '23 19:12 DeadDude-glitch