edeskyclient 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

Edesky client #

Pub Build Status

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

Usage #

dependencies:
    edeskyclient: ^1.0.0

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

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

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

  // ...

  // Fetch single dashboard by ID
  final dashboard = await edesky.queryDashboard(1);
  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();

  // ...
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

[1.0.0] - 2019-10-11

  • fixed bugs
  • updated dependencies

[0.1.0] - 2019-05-12

  • fixed meta dependency

[0.0.1] - 2019-03-22

  • initial release

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);
  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();

  // ...
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  edeskyclient: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:edeskyclient/edeskyclient.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Nov 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, other

Primary library: package:edeskyclient/edeskyclient.dart with components: io.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
collection ^1.14.11 1.14.12
http ^0.12.0+2 0.12.0+2
meta ^1.1.7 1.1.8
xml ^3.5.0 3.5.0
Transitive dependencies
async 2.4.0
charcode 1.1.2
convert 2.1.1
http_parser 3.1.3
path 1.6.4
pedantic 1.8.0+1
petitparser 2.4.0
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.9.1