Rebate
Installation
- Maven
- Gradle
pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>
build.gradle
implementation '{{groupId}}:{{artifactId}}:{{version}}'
Client instantiation
RebateClient client = new RebateClient(key, secret);
Features
Get the spot rebate history records
- Default
- Framed
- Sync
- Async
try{
SpotRebateHistoryResponse res = client.getSpotRebateHistoryRecords().sync();
}catch(ApiException e){
//...
}
client.getSpotRebateHistoryRecords().async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
SpotRebateHistoryResponse res = client.getSpotRebateHistoryRecords(new FramedPaging(startTime, endTime, page, limit)).sync();
}catch(ApiException e){
//...
}
client.getSpotRebateHistoryRecords(new FramedPaging(startTime, endTime, page, limit)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});