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

Default Configuration Example
java
package com.toolsetlink.upgradelink.api;
import com.toolsetlink.upgradelink.api.Client;
import com.toolsetlink.upgradelink.api.Client.Callback;
public class ClientTest {
private Client client;
@Before
public void setUp() {
Config config = new Config();
config.accessKey = "mui2W50H1j-OC4xD6PgQag";
config.secretKey = "PEbdHFGC0uO_Pch7XWBQTMsFRxKPQAM2565eP8LJ3gc";
client = new Client(config);
}
}Configuration Parameter Summary
| Parameter Name | Required | Type | Example Value | Description |
|---|---|---|---|---|
| accessKey | Yes | string | 89c8b3d5f2a74e1b | AccessKey |
| secretKey | Yes | string | 89c8b3d5f2a74e1b | AccessSecret |
| protocol | No | string | HTTPS | Protocol, default is HTTPS |
| endpoint | No | string | api.api.com | Service domain name, default is api.upgrade.toolsetlink.com, can be switched to your own service domain name. |