Package com.inttegro
Class Client.SchedulesClient
java.lang.Object
com.inttegro.Client.SchedulesClient
- Enclosing class:
- Client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCancels a scheduled chime by schedule ID (POST /schedules/cancel).Retrieves scheduled chime details by schedule ID (POST /schedules/lookup).
-
Constructor Details
-
SchedulesClient
-
-
Method Details
-
lookup
public ScheduleDetail lookup(String scheduleId) throws IOException, InterruptedException, ApiException Retrieves scheduled chime details by schedule ID (POST /schedules/lookup).- Parameters:
scheduleId- schedule identifier- Returns:
ScheduleDetailcontaining scheduled chime details- Throws:
IOException- if network communication failsInterruptedException- if the request is interruptedApiException- if schedule not found (404) or other API errors occur
-
cancel
public ScheduleDetail cancel(String scheduleId) throws IOException, InterruptedException, ApiException Cancels a scheduled chime by schedule ID (POST /schedules/cancel).- Parameters:
scheduleId- schedule identifier- Returns:
ScheduleDetailcontaining the canceled schedule details- Throws:
IOException- if network communication failsInterruptedException- if the request is interruptedApiException- if schedule not found (404) or already executed/canceled (422)
-