maescool / awwsavoclient
AWWSAVO Soap客户端,用于在Accell获取库存信息
1.0.0
2020-05-09 01:05 UTC
Requires
- php: >= 7.2
- ext-soap: *
This package is auto-updated.
Last update: 2024-09-09 11:32:38 UTC
README
关于
AWWSAVOClient是一个PHP库,用于通过Accel-it-services获取供应商的当前库存状态。
方法和变量使用荷兰语,因为soap wsdl也定义在这个语言中。不过我已经用英文对此进行了文档说明。
安装
composer require maescool/awwsavoclient
用法
getVoorraad
getVoorraad方法返回一个包含数据的对象,或者在失败时抛出异常。
/* Call the Composer autoloader */ require '../vendor/autoload.php'; use AWWSAVO\Client\AWWSAVOClient; ## these values are max 10 digits in length. $leveranciercode = "yoursuppliercode"; $usercode = "yourusercode"; $wachtwoord = "yourpassword"; try { $client = new AWWSAVOClient($leveranciercode, $usercode, $wachtwoord); # Get the supply status from a certain article, based on article code # the article code must be a string, no longer than 15 digits. $data = $client->getVoorraad("8715019301322"); var_dump($data); } catch (Exception $e) { echo $e->getMessage(); }