rpmtw_api_client 1.0.8-dev.1 copy "rpmtw_api_client: ^1.0.8-dev.1" to clipboard
rpmtw_api_client: ^1.0.8-dev.1 copied to clipboard

outdated

RPMTW api client library for Dart

RPMTW API Client (Dart) #

Example #

import "package:rpmtw_api_client/rpmtw_api_client.dart";

void main() async {
  RPMTWApiClient.init(); // Initialize RPMTW API Client
  RPMTWApiClient apiClient = RPMTWApiClient.instance;
  print(apiClient.apiBaseUrl);
  PasswordValidatedResult result =
      await apiClient.authResource.validPassword("12345"); // Valid password
  print(result.message);

  String message = await apiClient.otherResource.helloWorld();
  print(message);

  String ip = await apiClient.otherResource.getIP();
  print(ip);
  exit(0);
}

Docs

Other Language #

Kotlin