apetito_product_api_client 1.0.0 copy "apetito_product_api_client: ^1.0.0" to clipboard
apetito_product_api_client: ^1.0.0 copied to clipboard

A client for accessing the apetito Product API. Please note that the apetito Product API Client is unofficial and not endorsed by apetito.

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('identity.apetito.co.uk', '/connect/token'),
    'client_id',
    'client_secret',
    scopes: ['Products.Read.All'],
  );

  final api = ApetitoProductApiClient(
    client: client,
  );

  for (var product in await api.productService.getProducts()) {
    print(product);
  }

  client.close();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
130
pub points
0%
popularity

Publisher

verified publisherthomasclark.dev

A client for accessing the apetito Product API. Please note that the apetito Product API Client is unofficial and not endorsed by apetito.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on apetito_product_api_client