ahhussein / afterbuy-sdk
AfterbuySDK的分支
0.0.4
2019-06-20 14:32 UTC
Requires
- guzzlehttp/guzzle: ~6.0
- jms/serializer: ^1.1
- monolog/monolog: ~1.12
This package is not auto-updated.
Last update: 2024-09-29 06:02:37 UTC
README
使用composer安装该包及其依赖
$ composer require next-sentence/afterbuy-sdk
使用方法
<?php require_once __DIR__ . './../vendor/autoload.php'; $config = array( 'userId' => 'userid', 'userPass' => 'userpass', 'partnerId' => '123456', 'partnerPass' => '123', 'errorLang' => 'en', ); $factory = new Ns\Afterbuy\Factory(); $api = $factory->createRequest($config); try { $soldItems = $api->getSoldItems(); $result = $soldItems->getResult(); var_dump($result); } catch (Exception $e) { echo $e; }
响应将是Ns\Afterbuy\Model\UpdateSoldItems\UpdateSoldItemsResponse
的实例。
依赖
jms/serializer
- 允许您轻松序列化和反序列化任何复杂性的数据guzzlehttp/guzzle
- Guzzle是一个PHP HTTP客户端库monolog/monolog
- Monolog库