ryssbowh / zedonk-api-php
Simple PHP Wrapper for Zedonk API calls
1.0
2019-09-10 12:48 UTC
Requires
- php: >=5.6.0
- ext-curl: *
- ext-simplexml: *
This package is auto-updated.
Last update: 2024-11-11 00:02:50 UTC
README
Simple wrapper to read a zedonk repository through its api.
You'll need to set your credentials before using it :
ZedonkAPI\ZedonkAPI::setCredentials($url, $key, $user, $password)
Each call will return an array of \ZedonkAPI\ZedonkEntity
which has basic getters/setters
Filters must have the following form
[
['price > 100', 'and'],
["vat = 'true'", 'or'] //Note the extra quotes here
]
Change the default season name with ZedonkAPI::setSeason($season)
Available calls :
ZedonkAPI\ZedonkAPI::getProducts($filters = [])
ZedonkAPI\ZedonkAPI::getCustomers($filters = [])
ZedonkAPI\ZedonkAPI::getOrders($filters = [])
ZedonkAPI\ZedonkAPI::getInventory($filters = [])
Or you could call any report by its name :
ZedonkAPI\ZedonkAPI::call('MyCustomReport', $filters = [])