Skip to main content

nativemind_api_client 0.2.0 copy "nativemind_api_client: ^0.2.0" to clipboard
nativemind_api_client: ^0.2.0 copied to clipboard

Pure-Dart API client of the NativeMind framework: operation table, HTTP transport with silent token refresh, error envelope, paging, offline action queue, SSE topic stream, OData filters.

example/example.dart

// ignore_for_file: avoid_print
import 'package:nativemind_api_client/nativemind_api_client.dart';

/// Calls one operation of a registry-driven API and prints the result.
// written by Claude Code (generated by Claude Code), 2026-11-17; SDD: flows/sdd-nativemind-widgets-liendeed
Future<void> main() async {
  const operations = {'get_config': NmApiOperation('get_config', 'GET', '/api/v1/config', public: true)};
  final api = NmHttpApiClient('https://api.example.com', operations: operations, defaultHeaders: {'X-App': 'example'});
  try {
    final config = await api.call('get_config');
    print(config.object);
  } on NmApiException catch (e) {
    print('${e.code}: $e');
  }
}
0
likes
140
points
0
downloads

Documentation

API reference

Publisher

verified publisherframework.nativemind.net

Weekly Downloads

Pure-Dart API client of the NativeMind framework: operation table, HTTP transport with silent token refresh, error envelope, paging, offline action queue, SSE topic stream, OData filters.

Repository (GitLab)

Topics

#api #http #sse #offline #client

License

unknown (license)

Dependencies

http, web

More

Packages that depend on nativemind_api_client