示例#1
0
        public TimeEntryResponse StopTimeEntry(string workspaceId, string userId, StopTimeEntryRequest data)
        {
            var status = 0;
            var result = ServiceUtility.WebAPIRequest(out status, ServiceUtility.ClockifyApiUrl, Enums.WebMethod.PATCH, "/workspaces/" + workspaceId + "/user/" + userId + "/time-entries", null, data, headers: new List <KeyValuePair <string, string> >()
            {
                AuthHeader
            });

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <TimeEntryResponse>(result));
        }
示例#2
0
 public static TimeEntryResponse StopClockify(string workspaceId, string userId, StopTimeEntryRequest req)
 {
     return(_clockifyService.StopTimeEntry(workspaceId, userId, req));
 }