For more information, please visit https://www.hydrogenplatform.com/no-code
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
Add this dependency to your project's POM:
<dependency>
<groupId>com.hydrogenplatform</groupId>
<artifactId>app-token-api</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Please first follow the installation instructions. Then make sure you use the proper base URL:
Follow steps to verify the base URL path:
- Go to ApiClient file located under src folder.
- Search for basePath and change/verify the URL according to the environment.
Sandbox Base URL https://sandbox.hydrogenplatform.com
Production Base URL https://api.hydrogenplatform.com
Now you are ready to execute the following Java code:
public class AppTokenApiExample {
public static void main(String[] args) {
AppTokenConfig appTokenConfig = new AppTokenConfig()
.setClientId("xxxxx")
.setClientSecret("xxxxx")
.setAccessToken("xxxxx")
.setUsername("xxxxx")
.setPassword("xxxxx")
.setPublicKey("xxxxx")
.setClientToken("xxxxx")
.setAppNames(asList(new AppConfig().setAppName("card_balance")))
.setAuthType("password_credentials")
.setBasePath(Environment.PRODUCTION)
.setAttributes(asList(
new TagAttributes().setName("card-id").setValue("xxxxx")
,new TagAttributes().setName("client-id").setValue("xxxxx"))
)
.setIsEmbed(true);
AutoGenerateAppTokenApi appTokenApi = new AutoGenerateAppTokenApi(appTokenConfig);
List<Map<String, String>> appTokenUsingGET = appTokenApi.getAppTokenUsingGET();
System.out.println(appTokenUsingGET);
}
}
The Hydrogen Technology Corporation
https://www.hydrogenplatform.com
Generated using Swagger Codegen