mdm_manage_engine_client 0.1.0 copy "mdm_manage_engine_client: ^0.1.0" to clipboard
mdm_manage_engine_client: ^0.1.0 copied to clipboard

Dart client api for communicating with the MDM Manage Engine private appstore.

example/example.dart

// ignore_for_file: avoid_print

import 'package:mdm_manage_engine_client/mdm_manage_engine_client.dart';

Future<void> main() async {
  final mdmController = ManageEngineController(
    /// choose the channel you want to use for your region or data center location
    manageEngineChannel: ManageEngineChannel.europe,
  );

  final response = await mdmController.call(
    request: (clients) =>
        clients.v2.authenticationClient.generateAccessOrRefreshToken(
      AccessOrRefreshTokenRequestDto(
        grantType: AccessOrRefreshTokenRequestDtoGrantType.refreshToken,
        clientId: 'clientId',
        clientSecret: 'clientSecret',
        refreshToken: 'refreshToken',
      ),
    ),
  );

  response.when(
    (value) {
      print(value);
    },
    (error) {
      print(error);
    },
  );
}
2
likes
130
points
30
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

Dart client api for communicating with the MDM Manage Engine private appstore.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

freezed_annotation, http, json_annotation

More

Packages that depend on mdm_manage_engine_client