From 63bf675b212affab4960b26324288b2fc2b57b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 25 Sep 2019 17:04:42 +0800 Subject: Ticket history function --- rtclient/ticket.h | 1 + ticket.c | 6 ++++++ 2 files changed, 7 insertions(+) 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 diff --git a/ticket.c b/ticket.c index ec19d5e..3fb328c 100644 --- a/ticket.c +++ b/ticket.c @@ -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++) { -- cgit v1.2.3