xaxoa_argus_api_client 1.0.0 copy "xaxoa_argus_api_client: ^1.0.0" to clipboard
xaxoa_argus_api_client: ^1.0.0 copied to clipboard

unlistedoutdated

A Dart compatible library to simplify creating encrypted Argus API calls for Flutter based applications.

example/xaxoa_argus_api_client_example.dart

import 'package:xaxoa_argus_api_client/xaxoa_argus_api_client.dart';

void main() async {

  Map<String, dynamic> data = {
    "username": "Here your username",
    "password": "Here your password"
  };

  ArgusResponse response = await ArgusRestClient.getResponse(
      cryptKeyBase64: "Here your base64 key",
      url: "https://example.com/api/login",
      body: data
      //token: Bearer token String to authorize later
  );

  if (response.statusCode != 200) {
    print('Something went wrong!');
    return;
  }

  var body = response.body;
  if (body != null && body.containsKey("token")) {

    // do further processing here...

  }
}
0
likes
0
points
0
downloads

Publisher

verified publisherxaxoa.de

Weekly Downloads

A Dart compatible library to simplify creating encrypted Argus API calls for Flutter based applications.

Homepage
Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

crypto, encrypt, rest_client

More

Packages that depend on xaxoa_argus_api_client