Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 2.58 KB

DeliveryReportApi.md

File metadata and controls

77 lines (58 loc) · 2.58 KB

DeliveryReportApi

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

retrieveDeliveryReport

DeliveryReportResponse retrieveDeliveryReport(omnimessageId)

Retrieves the delivery report for the Omnimessage

Example

// 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();
    }
  }
}

Parameters

Name Type Description Notes
omnimessageId UUID UUID of the omnimessage to for which the delivery report is to be retrieved

Return type

DeliveryReportResponse

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

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 -