How to Configure Client
Client is the Dart client used to obtain upgrade strategies and other resources. To make requests using the Dart 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
dart
import 'package:upgradelink_api_dart/upgradelink_api_dart.dart';
Future<void> main() async {
final config = Config(
accessKey: 'mui2W50H1j-OC4xD6PgQag',
secretKey: 'PEbdHFGC0uO_Pch7XWBQTMsFRxKPQAM2565eP8LJ3gc',
// protocol: 'HTTP',
// endpoint: 'api.upgrade.toolsetlink.com',
);
final client = Client(config: 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 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. |