Latch latch = new Latch(APP_ID, SECRET);
// Pairing will return an account id that you should store for future api calls
LatchResponse pairResponse = latch.pair(TOKEN);
LatchResponse statusResponse = latch.status(ACCOUNT_ID);
LatchResponse opStatusResponse = latch.operationStatus(ACCOUNT_ID, OPERATION_ID);
LatchResponse unpairResponse = latch.unpair(ACCOUNT_ID);
// After every API call, get Latch response data and errors and handle them.
JsonObject jObject = latchResponse.getData();
com.elevenpaths.latch.Error error = latchResponse.getError();
https://latch.elevenpaths.com/www/developers/doc_api
Endpoints: