Simple calculator API hosted on APIMATIC
Install the SDK by adding the following dependency in your project's pom.xml file:
<dependency>
<groupId>io.sdks</groupId>
<artifactId>calculator-java-sdk</artifactId>
<version>1.2.6</version>
</dependency>You can also view the package at: https://central.sonatype.com/artifact/io.sdks/calculator-java-sdk/1.2.6
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
|---|---|---|
| environment | Environment |
The API environment. Default: Environment.PRODUCTION |
| httpClientConfig | Consumer<HttpClientConfiguration.Builder> |
Set up Http Client Configuration instance. |
The API client can be initialized as follows:
ApimaticCalculatorClient client = new ApimaticCalculatorClient.Builder()
.httpClientConfig(configBuilder -> configBuilder
.timeout(0))
.environment(Environment.PRODUCTION)
.build();