prestashop_webservice

Last updated:

0 purchases

prestashop_webservice Image
prestashop_webservice Images
Add to Cart

Description:

prestashop webservice

A dart package for reading data from prestashop webservices
Usage #
import 'package:http/http.dart';
import 'package:prestashop_webservice/prestashop_webservice.dart';

void main() async {
final api = PrestashopApi(
Client(),
PrestashopApiConfig(
apiKey: "your-secret-api-key",
webserviceUrl: "https://example.com",
));

/* Multiple entities */
final customers = await api.customers();

for (final customer in customers) {
print(customer);
}

/* Single entity */
final order = await api.order(7);

print(order.orNull);
}

copied to clipboard
Development #
This package uses the build_runner package to generate the json parsing implementation. Before running / compiling the code is important to run the generator. See json_serializable package docs.
Additional information and warning #
This package is at a really early development phase and may not include the prestahop entity to search for or be suitable for production

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.