diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 17:04:42 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 17:04:42 +0800 |
commit | 63bf675b212affab4960b26324288b2fc2b57b21 (patch) | |
tree | 5c255429716cf69c9ca8e56952d11cdba59e6547 | |
parent | 0c0105c28e654289067245ecd66df59bf93e8682 (diff) |
Ticket history function
-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++) { |