The Trinsic API Java library provides convenient access to the Trinsic API from applications written in Java.
See the Trinsic docs for more detailed information on how to start integrating with our identity acceptance network.
Add the following to your pom.xml
file:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.trinsic-id</groupId>
<artifactId>sdk-java-api</artifactId>
<version>Tag</version>
</dependency>
</dependencies>
Add the following to your build.gradle
or build.gradle.kts
file:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.trinsic-id:sdk-java-api:Tag'
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
}
dependencies {
implementation("com.github.trinsic-id:sdk-java-api:Tag")
}
The package needs to be configured with your app's access token, which is available in the Trinsic Dashboard.
var apiClient = new ApiClient();
apiClient.setRequestInterceptor(interceptor -> {
interceptor.setHeader("Authorization", "Bearer " + "your-access-token");
});
var attachments = new AttachmentsApi(apiClient);
var network = new NetworkApi(apiClient);
var sessions = new SessionsApi(apiClient);
You can find a full Java example in the samples folder.
Our SDKs follow the Semantic Versioning ("SemVer") scheme.
For example, the version number 1.13.0
has a major version of 1
, a minor version of 13
, and a patch version of 0
.
Breaking changes are only introduced alongside a new major version.
Any issues, inquiries, and feature requests can be sent to [email protected], or feel free to open a GitHub issue here.