Add the SDK from the Maven Repository to your project. The SDK is available here.
import com.silamoney.client.api.SilaApi;SilaApi api = new SilaApi(Environments.SilaEnvironment.SANDBOX,appHandle,privateKey);
This sets up the app private key and handle for the SDK to use for signing subsequent requests. The other SDK functionality will not be available until this configuration is completed. The SDK does not store this information outside of the instance that is configured. Private keys are never transmitted over the network or stored outside the scope of this instance.
You can manage your apps in the Developer Console. The
APPLICATION_PRIVATE_KEY is the Private Key that matches the Public Key associated with the Application Handle in your Console.
The following represents a simple check_handle request:
String userHandle = "user.silamoney.eth";ApiResponse response = api.CheckHandle(userHandle);