How to Configure Client
Client is a Java client used to obtain upgrade strategies and other resources. To initiate requests using Java SDK, you need to initialize a Client instance and modify the default configuration items of Client as needed.
Prerequisites
- Have registered an upgradeLink account.
- Obtained AccessKey and AccessSecret.
Obtain Credentials

Default Configuration Example
java
package com.toolsetlink.upgradelink.api;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class ClientTest {
private final String accessKey = "mui2W50H1j-OC4xD6PgQag";
private final String accessSecret = "PEbdHFGC0uO_Pch7XWBQTMsFRxKPQAM2565eP8LJ3gc";
private Client client;
@BeforeEach
void setUp() throws Exception {
Config config = new Config();
config.setAccessKey(accessKey);
config.setAccessSecret(accessSecret);
client = new Client(config);
}
}Configuration Parameter Summary
| Parameter Name | Required | Type | Example Value | Description |
|---|---|---|---|---|
| accessKey | Yes | string | 89c8b3d5f2a74e1b | |
| secretKey | Yes | string | 89c8b3d5f2a74e1b | |
| protocol | No | string | HTTPS | Protocol, default is HTTP |
| endpoint | No | string | api.api.com | Service domain name, default is api.upgrade.toolsetlink.com, can be switched to your own service domain name. |