Package de.brifle.sdk.api.endpoints
Class ContentEndpoint
java.lang.Object
de.brifle.sdk.api.endpoints.EndpointBase
de.brifle.sdk.api.endpoints.ContentEndpoint
-
Field Summary
Fields inherited from class de.brifle.sdk.api.endpoints.EndpointBase
client, jsonConverter, mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckReceiver(String authToken, ReceiverRequest request) Checks if a receiver is validgetContent(String authToken, String id) sendContent(String authToken, String tenant, SendContentRequest request) Sends content to a receiverMethods inherited from class de.brifle.sdk.api.endpoints.EndpointBase
buildGetRequest, buildPostRequest, buildPostRequest, buildPostRequest
-
Constructor Details
-
ContentEndpoint
-
-
Method Details
-
checkReceiver
public ApiResponse<CheckReceiverResponse> checkReceiver(String authToken, ReceiverRequest request) throws IOException, InterruptedException Checks if a receiver is valid- Parameters:
authToken- the auth token generated by the authenticate methodrequest- the request- Returns:
- the response
- Throws:
IOException- if an error occursInterruptedException- if an error occurs
-
sendContent
public ApiResponse<SendContentResponse> sendContent(String authToken, String tenant, SendContentRequest request) throws IOException, InterruptedException Sends content to a receiver- Parameters:
authToken- the auth token generated by the authenticate methodtenant- the tenant id of the senderrequest- the request- Returns:
- the response
- Throws:
IOException- if an error occursInterruptedException- if an error occurs
-
getContent
public ApiResponse<GetContentResponse> getContent(String authToken, String id) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-