-
Notifications
You must be signed in to change notification settings - Fork 3
Java API
Martin Paljak edited this page Jun 14, 2018
·
1 revision
import com.fidesmo.fdsm.FidesmoApiClient;
import com.fidesmo.fdsm.ServiceDeliverySession;
import com.fidesmo.fdsm.FidesmoCard;
// Get a CardChannel
CardChannel channel = TerminalFactory
.getDefault()
.terminals()
.list(CardTerminals.State.CARD_PRESENT)
.get(0)
.connect("*");
// Check if actually a Fidesmo card
FidesmoCard card = FidesmoCard.getInstance(channel);
// Which service
String appId = "d7d13e65";
String service = "get";
// Execute
FidesmoApiClient client = new FidesmoApiClient();
ServiceDeliverySession session = ServiceDeliverySession.getInstance(card, client);
session.deliver(appId, service);
For support please contact Fidesmo via [email protected]