Skip to main content
Version: 2.x

BLVT

 License: MIT 

Installation

pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>

Client instantiation

BLVTClient client = new BLVTClient(key, secret);

Features

Get token info

try{
List<Token> res = client.getTokenInfo().sync();
}catch(ApiException e){
//...
}

Get subscriptions

try{
SubscriptionResponse res = client.getSubscriptions().sync();
}catch(ApiException e){
//...
}

Get redemptions

try{
List<Redemption> res = client.getRedemptions().sync();
}catch(ApiException e){
//...
}

Get user limit info

try{
List<LimitInfo> res = client.getLimitInfo().sync();
}catch(ApiException e){
//...
}

Redeem

try{
RedemptionResponse res = client.redeem(new RedemptionParams(tokenName, amount)).sync();
}catch(ApiException e){
//...
}

Subscribe

try{
SubscriptionResponse res = client.subscribe(new SubscriptionParams(tokenName, cost)).sync();
}catch(ApiException e){
//...
}