Download the PHP package sparkproxy/spark-sdk-php without Composer
On this page you can find all versions of the php package sparkproxy/spark-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sparkproxy/spark-sdk-php
More information about sparkproxy/spark-sdk-php
Files in sparkproxy/spark-sdk-php
Download sparkproxy/spark-sdk-php
More information about sparkproxy/spark-sdk-php
Files in sparkproxy/spark-sdk-php
Vendor sparkproxy
Package spark-sdk-php
Short Description SparkProxy Open API SDK for PHP
License MIT
Homepage http://developer.sparkproxy.com/
Package spark-sdk-php
Short Description SparkProxy Open API SDK for PHP
License MIT
Homepage http://developer.sparkproxy.com/
Please rate this library. Is it a good library?
Informations about the package spark-sdk-php
Sparkproxy OpenApi SDK for PHP
安装
推荐使用 composer 进行安装。可以使用 composer.json 声明依赖,或者运行下面的命令。SDK 包已经放到这里 sparkproxy/spark-php-sdk 。
运行环境
| sparkproxy SDK版本 | PHP 版本 |
|---|---|
| 0.x | cURL extension, 5.3 - 5.6, 7.0 - 7.4, 8.0-8.1 |
使用方法
创建代理
复用商品(proxyType=105)
- 拉取库存:
getProductStock(105) - 共享商品(
products.shareable=1)下,系统会校验同账号同IP重复开通 - 普通静态商品即使走
customCreateProxy(..., shareable=true, ...),保持历史兼容逻辑
可参考示例:
examples/SB_SharedProduct105_CreateProxy.php
测试
常见问题
$error保留了请求响应的信息,失败情况下ret为none, 将$error可以打印出来,提交给我们。- API 的使用 demo 可以参考 examples。
代码贡献
详情参考代码提交指南。
贡献记录
联系我们
- 如果需要帮助,请提交工单(在portal右侧点击咨询和建议提交工单,或者直接向 [email protected] 发送邮件)
- 如果发现了bug, 欢迎提交 issue
- 如果有功能需求,欢迎提交 issue
- 如果要提交代码,欢迎提交 pull request
代码许可
The MIT License (MIT).详情见 License文件.
All versions of spark-sdk-php with dependencies
PHP Build Version
Package Version
The package sparkproxy/spark-sdk-php contains the following files
Loading the files please wait ...