Package ai.promoted.delivery.client
Class ApiDelivery
java.lang.Object
ai.promoted.delivery.client.ApiDelivery
- All Implemented Interfaces:
Delivery
Client for Promoted.ai's Delivery API.
-
Constructor Summary
ConstructorsConstructorDescriptionApiDelivery(String endpoint, String apiKey, long timeoutMillis, boolean warmup, int maxRequestInsertions) Instantiates a new Delivery API client. -
Method Summary
-
Constructor Details
-
ApiDelivery
public ApiDelivery(String endpoint, String apiKey, long timeoutMillis, boolean warmup, int maxRequestInsertions) Instantiates a new Delivery API client.- Parameters:
endpoint- the endpointapiKey- the api keytimeoutMillis- the timeout in milliswarmup-maxRequestInsertions- the max number of request insertions
-
-
Method Details
-
runDelivery
Do delivery.- Specified by:
runDeliveryin interfaceDelivery- Parameters:
deliveryRequest- the delivery request- Returns:
- the response with insertions from Promoted.ai
- Throws:
DeliveryException- any delivery exception that may occur
-