edeskyclient 1.1.0 copy "edeskyclient: ^1.1.0" to clipboard
edeskyclient: ^1.1.0 copied to clipboard

Dart client for Czech service edesky.cz API. Supports dashboards and documents querying.

example/edeskyclient_example.dart

import 'package:edeskyclient/edeskyclient.dart';
import 'package:http/http.dart';

Future<void> main() async {
  final edesky = EdeskyClient(
    httpClient: Client(),
    apiKey: 'xyz', //insert your api key
  );

  // Fetch all dashboards
//  final dashboards = await edesky.queryDashboards();
//  print(dashboards.first.name);

  // ...

  // Fetch single dashboard by ID
  final dashboard = await edesky.queryDashboard(1);
  // ignore: avoid_print
  print(dashboard.name);

  // ...

  // Search documents
//  final searchResult = await edesky.queryDocuments(keywords: 'prodej');
//  print("${searchResult.first.name}, ${searchResult.first.url}");

  // close http client when it's done being used
  edesky.close();

  // ...
}
0
likes
140
points
24
downloads

Publisher

verified publisherstol.dev

Weekly Downloads

Dart client for Czech service edesky.cz API. Supports dashboards and documents querying.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, http, xml

More

Packages that depend on edeskyclient