bittools / bseller-php
这是与BSeller集成的官方PHP SDK。
1.1.0
2018-07-10 21:31 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ^5.3
- monolog/monolog: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5
- squizlabs/php_codesniffer: ^3.0@dev
This package is auto-updated.
Last update: 2024-09-22 06:50:53 UTC
README
BSeller - PHP SDK
这是BSeller的官方SDK,采用PHP构建,您可以将其用于集成到我们的服务中。
看看如何轻松使用的一个例子
<?php require_once './vendor/autoload.php'; $authToken = '6A9E013C42EB7152E0536AF3A8C0EDC8'; /** @var \BSeller\Api $api */ $api = new BSeller\Api($authToken); /** @var \BSeller\Api\EntityInterface\Catalog\Product\Variation $entityInterface */ $entityInterface = $api->productVariations() ->entityInterface(); $entityInterface ->setNome('Cor') ->setId(1) ->addSpecification(1, 'Azul') ->addSpecification(2, 'Amarelo') ->addSpecification(3, 'Vermelho') ->addSpecification(4, 'Rosa') ->addSpecification(5, 'Branco'); $response = $entityInterface->create(); if ($response->success()) { echo 'SUCCESS!'; }
Wiki
代码贡献
您的贡献总是受欢迎!请阅读代码贡献文档。
作者
Julio Reis
支持
对于支持请求,请将电子邮件发送到以下地址
许可证
BSeller PHP SDK是一个在B2W办公室启动的项目,并于2018年3月作为开源软件发布。
包含在本分布中的源代码根据OSL 3.0许可。
请参阅LICENSE.txt文件以阅读OSL 3.0许可证的完整文本,或联系sdk@e-smart.com.br以获取副本。