Last updated:
0 purchases
opencontrolz client
OpenControlz API client library for Dart developers. Provides model objects and services to communicate with OpenControlz platform using RESTful APIs and WebSocket protocol.
Current client version is compatible with OpenControlz starting from version 1.0.0.
Usage #
A simple usage example:
import 'package:opencontrolz_client/opencontrolz_client.dart';
main() async {
try {
var tbClient = OpenControlzClient('https://cloud.opencontrolz.com');
await tbClient.login(LoginRequest('[email protected]', 'tenant'));
print('isAuthenticated=${tbClient.isAuthenticated()}');
print('authUser: ${tbClient.getAuthUser()}');
var currentUserDetails = await tbClient.getUserService().getUser();
print('currentUserDetails: $currentUserDetails');
await tbClient.logout();
} catch (e, s) {
print('Error: $e');
print('Stack: $s');
}
}
copied to clipboard
Features and bugs #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.