prestashop_webservice 0.7.1 copy "prestashop_webservice: ^0.7.1" to clipboard
prestashop_webservice: ^0.7.1 copied to clipboard

A dart package for reading data from prestashop webservices. The service is basically a typed client for the prestashop webservice api.

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

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

2
likes
140
pub points
42%
popularity

Publisher

verified publishermsiviero.dev

A dart package for reading data from prestashop webservices. The service is basically a typed client for the prestashop webservice api.

Repository (GitHub)
View/report issues

Topics

#api #prestashop #ecommerce

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

equatable, http, json_annotation, loggy, quiver

More

Packages that depend on prestashop_webservice