Skip to content

Dart Get URL Application Latest Upgrade Information

This method retrieves the latest upgrade strategy for URL applications.

Request Parameter List

Parameter NameTypeDescription
requestUrlUpgradeRequestSet specific interface request parameters, see URL Application Get Upgrade Strategy

Return Value List

Return Value NameTypeDescription
resultUrlUpgradeResponseInterface return value, valid when err is nil, specific interface return parameters, see URL Application Get Upgrade Strategy
errerrorRequest status, err is not nil when the request fails

Example Code

You can use the following code to obtain the latest upgrade strategy.

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);

  final request = UrlUpgradeRequest(
    urlKey: 'uJ47NPeT7qjLa1gL3sVHqw',
    versionCode: 1,
    appointVersionCode: 0,
    devModelKey: '',
    devKey: '',
  );

  final response = await client.getUrlUpgrade(request);
  print(response.toString());
}

toolsetlink@163.com