jmixclientv1 1.0.9 jmixclientv1: ^1.0.9 copied to clipboard
Library to comunicate with jmix 1.x rest api
DartJmixClientV1 #
Library to comunicate with jmix 1.x rest api
Instalation #
Install package into dart
dart pub add jmixclientv1
Install package into flutter
flutter pub add jmixclientv1
Examples #
Make and http request
import 'package:http/http.dart';
Future<void> main() async {
final JmixClient jmixClient = JmixClient(
protocol: String.fromEnvironment('JMIX_PROTOCOL'),
hostname:
String.fromEnvironment('JMIX_HOSTNAME'),
port: int.fromEnvironment('JMIX_PORT'),
clientId:
String.fromEnvironment('JMIX_CLIENT_ID'),
clientSecret: String.fromEnvironment('JMIX_CLIENT_SECRET')
);
final Session session = await jmixClient.getAccessToken(username: 'admin', password: 'admin');
print(session.toMap());
}
Follow me #
LICENSE #
Version #
Last update 27/08/2024