Convert
Installation
- Maven
- Gradle
pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>
build.gradle
implementation '{{groupId}}:{{artifactId}}:{{version}}'
Client instantiation
ConvertClient client = new ConvertClient(key, secret);
Features
Get conversions
- Sync
- Async
try{
ConversionHistory res = client.getConversions(new TimeFrame(startTime, endTime))).sync();
}catch(ApiException e){
//...
}
client.getConversions(new TimeFrame(startTime, endTime))).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});