apetito_product_api_client 1.0.0-nullsafety.0
apetito_product_api_client: ^1.0.0-nullsafety.0 copied to clipboard

Dart native js
Flutter Android iOS web

A client for accessing the apetito Product API.

apetito Product API Client #

A client for accessing the apetito Product API.

Please note that the apetito Product API Client is unofficial and not endorsed by apetito.

Usage #

A simple usage example:

import 'package:apetito_product_api_client/apetito_product_api_client.dart';
import 'package:oauth2/oauth2.dart';

Future<void> main() async {
  final client = await clientCredentialsGrant(
    Uri.https(
      'AUTHORITY',
      'PATH',
    ),
    'CLIENT_ID',
    'CLIENT_SECRET',
    scopes: [
      'SCOPE',
    ],
  );

  final api = ApetitoProductApiClient(
    client: client,
  );

  for (var product in await api.products.get()) {
    print(product);
  }

  client.close();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
80
pub points
5%
popularity

Publisher

thomasclark.dev

A client for accessing the apetito Product API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on apetito_product_api_client