public class SiftClient
extends java.lang.Object
Use a SiftClient to access all supported Sift Science APIs. It may be used concurrently from
different threads.
Usage:
SiftClient client = new SiftClient("your_api_key");
EventRequest txEventRequest = client.buildRequest(
new TransactionFieldSet()
.setUserId("some_user_id")
.setAmount(506790000L)
.setCurrencyCode("USD")
.setTransactionType("$sale")
... );
try {
EventResponse txEventResponse = txEventRequest.send();
} catch (SiftException e) {
... handle validation and unexpected server errors.
}
txEventResponse.isOk(); // true;
txEventResponse.getApiErrorMessage(); // "OK";
FieldSet requestFields = txEventResponse.getRequestBody();
EventResponseBody responseFields = txEventResponse.getBody();