All URIs are relative to https://api.messente.com/v1
Method | HTTP request | Description |
---|---|---|
retrieveDeliveryReport | GET /omnimessage/{omnimessageId}/status | Retrieves the delivery report for the Omnimessage |
DeliveryReportResponse retrieveDeliveryReport(omnimessageId)
Retrieves the delivery report for the Omnimessage
// Import classes:
import com.messente.ApiClient;
import com.messente.ApiException;
import com.messente.Configuration;
import com.messente.auth.*;
import com.messente.models.*;
import com.messente.api.DeliveryReportApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.messente.com/v1");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DeliveryReportApi apiInstance = new DeliveryReportApi(defaultClient);
UUID omnimessageId = UUID.randomUUID(); // UUID | UUID of the omnimessage to for which the delivery report is to be retrieved
try {
DeliveryReportResponse result = apiInstance.retrieveDeliveryReport(omnimessageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeliveryReportApi#retrieveDeliveryReport");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
omnimessageId | UUID | UUID of the omnimessage to for which the delivery report is to be retrieved |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Delivery report success | - |
401 | Unauthorized | - |
404 | If no such message exists or you do not have access to the particular message | - |