Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

spray-example

This is a simple example of how to use the Fidesmo API with spray. It implements the following services:

  • transceive - Simple service that sends some APDUs to the card
  • mifare - A more complex service that initializes, reads and writes to a virtual MIFARE card
  • mifare-pay - Same as above but with payment
  • install - Installs a Java Card app using the CCM api
  • fail - A service that does nothing but fail
  • fail-pay - Same as above but with payment

The service delivery logic is implemented by a separate "DeliveryActor" for each type of service.

Test server

Service provider e26b8f12 is running this service for testing purposes. Beware that it's running on free Heroku instance so it might be quite slow due to spinning down! To test this running service from an Android application call the Fidesmo App using the following code:

Intent intent = new Intent();
intent.setAction("com.fidesmo.sec.DELIVER_SERVICE");
intent.setData(Uri.parse("https://api.fidesmo.com/service/e26b8f12/transceive"));
startActivity(intent);

The URI encodes the service provider e26b8f12 and the service ID transceive - this example SP implements all the services listed above for easy testing.

About

This is a simple example of how to use the Fidesmo API with using spray

Resources

Releases

No releases published

Packages

No packages published

Languages