Package com.inttegro
Class Client.BroadcastsClient
java.lang.Object
com.inttegro.Client.BroadcastsClient
- Enclosing class:
- Client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCancels a broadcast by broadcast ID (POST /broadcasts/cancel).Retrieves broadcast details by broadcast ID (POST /broadcasts/lookup).
-
Constructor Details
-
BroadcastsClient
-
-
Method Details
-
lookup
public BroadcastDetail lookup(String broadcastId) throws IOException, InterruptedException, ApiException Retrieves broadcast details by broadcast ID (POST /broadcasts/lookup).- Parameters:
broadcastId- broadcast identifier- Returns:
BroadcastDetailcontaining broadcast details- Throws:
IOException- if network communication failsInterruptedException- if the request is interruptedApiException- if broadcast not found (404) or other API errors occur
-
cancel
public BroadcastDetail cancel(String broadcastId) throws IOException, InterruptedException, ApiException Cancels a broadcast by broadcast ID (POST /broadcasts/cancel).- Parameters:
broadcastId- broadcast identifier- Returns:
BroadcastDetailcontaining canceled broadcast details- Throws:
IOException- if network communication failsInterruptedException- if the request is interruptedApiException- if broadcast not found (404) or already completed/canceled (422)
-