Java SDK
This page has all the information needed to install and setup the BLOOCK's SDK for Java. If you are looking for documentation related to an specific functionality, please refer to it's specific section.
To run the SDK for Java you will need:
- Java version >= 8
- Gradle or Maven for installing the package
The Java SDK is available through Gradle or Maven. To install it, you can add the following to the config of your prefered build tool:
Gradle
Maven
implementation 'com.bloock.sdk:bloock-sdk:SDK_VERSION'
<dependency>
<groupId>com.bloock.sdk</groupId>
<artifactId>bloock-sdk</artifactId>
<version>SDK_VERSION</version>
</dependency>
For Android projects, the installation is a bit different for restrictions in the JNA library for Java, that has an specific version (aar) to work on Android devices.
Gradle
implementation 'net.java.dev.jna:jna:[email protected]'
implementation('com.bloock.sdk:bloock-sdk:SDK_VERSION') {
exclude group: "net.java.dev.jna", module: "jna"
}
To start working with most of the functionalities of our SDKs, you will need an API Key. Please, follow the instructions of Create an API Key to get one.
Here's the code needed to properly configure the SDK Client with the API Key:
Java
import com.bloock.sdk.Bloock;
Bloock.apiKey = System.getenv("API_KEY");
Last modified 25d ago