Skip to content

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

img.jpg

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 NameRequiredTypeExample ValueDescription
accessKeyYesstring89c8b3d5f2a74e1bAccessKey
secretKeyYesstring89c8b3d5f2a74e1bAccessSecret
protocolNostringHTTPSProtocol, default is HTTPS
endpointNostringapi.api.comService domain name, default is api.upgrade.toolsetlink.com, can be switched to your own service domain name.

toolsetlink@163.com