diff options
-rw-r--r-- | rtclient/ticket.h | 1 | ||||
-rw-r--r-- | ticket.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/rtclient/ticket.h b/rtclient/ticket.h index 5b6bdd6..ae4f474 100644 --- a/rtclient/ticket.h +++ b/rtclient/ticket.h @@ -31,6 +31,7 @@ extern "C" { , const char *text); void rtclient_ticket_search(struct rtclient_ticketlist **listptr , const char *query); + void rtclient_ticket_history(unsigned int id); void rtclient_ticket_freelist(struct rtclient_ticketlist *list); #ifdef __cplusplus @@ -103,6 +103,12 @@ void rtclient_ticket_search(rtclient_ticketlist **listptr, const char *query) , "REST/1.0/search/ticket?query=", query); } +void rtclient_ticket_history(unsigned int id) +{ + request(NULL, NULL, NULL, "%s%d%s", "REST/1.0/ticket/", id + , "/history?format=l"); +} + void rtclient_ticket_freelist(rtclient_ticketlist *list) { for (size_t i = 0; i < list->length; i++) { |