Skip to content
The InCountry SDK for Java
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java
.DS_Store
.gitignore
.travis.yml
README.md
build.gradle
gradle.properties
java-sdk.iml
pom.xml
settings.gradle

README.md

Introduction

This is the java SDK for the InCountry storage network. Sign up for a free account at https://incountry.com, then note down your Environment ID and API key.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.incountry</groupId>
    <artifactId>incountry-java-client</artifactId>
    <version>0.2.5</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.incountry:incountry-java-client:0.2.5"

Others

At first generate the JAR by executing:

mvn package

Setup your environment:

export INC_ENDPOINT=<api endpoint>
export INC_ENVIRONMENT_ID=<environment id>
export INC_API_KEY=<api key>
export INC_SECRET_KEY=<generate uuid>

and now use the SDK:

import com.incountry.Storage;
import com.incountry.Data;

...

Storage store = new Storage();
store.write("US", "some_row_key", "Some data", null, null, null, null);
Data d = store.read("US", "some_row_key");
System.out.println(d);
store.delete("US", "some_row_key");
You can’t perform that action at this time.