woo_client 0.1.0
woo_client: ^0.1.0 copied to clipboard
A typed WooCommerce REST v3 client for Dart. Products, orders, customers and coupons, with real pagination and errors you can catch by kind.
0.1.0 #
First release.
WooCommerceclient for the WooCommerce REST API v3, over anyhttp.Client.- Products (with variations), orders, customers and coupons: list, get, create,
update, delete, plus
bySku,byEmail,byCodeandall()streams. WooPagecarries the store's ownX-WP-TotalandX-WP-TotalPages, sohasMoreandnextPageare answers rather than guesses.- A sealed
WooExceptionhierarchy: auth, not found, invalid request, server, network, and bad response are separate types you can catch by kind. WooPricekeeps WooCommerce's empty-string price distinct from zero, and keeps the store's own formatting.- Every model keeps the full response in
raw, so plugin fields and anything not modelled here are still reachable. - Refuses to send a consumer secret over plain HTTP.
- Pure Dart, one dependency.