Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tnc1997/dart-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.
https://github.com/tnc1997/dart-apetito-product-api-client
apetito-product-api client dart
Last synced: 4 days ago
JSON representation
A client for accessing the apetito Product API. Please note that the apetito Product API Client is unofficial and not endorsed by apetito.
- Host: GitHub
- URL: https://github.com/tnc1997/dart-apetito-product-api-client
- Owner: tnc1997
- License: mit
- Created: 2020-12-13T07:39:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-17T15:51:53.000Z (about 3 years ago)
- Last Synced: 2023-08-20T21:25:11.332Z (about 1 year ago)
- Topics: apetito-product-api, client, dart
- Language: Dart
- Homepage: https://pub.dev/packages/apetito_product_api_client
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```dart
import 'package:apetito_product_api_client/apetito_product_api_client.dart';
import 'package:oauth2/oauth2.dart';Future 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][tracker].
[tracker]: https://github.com/tnc1997/dart-apetito-product-api-client/issues