yijie / easytbk
swoft tbsdk
v1.0.2
2019-11-19 09:03 UTC
Requires
- php: >=5.4.0
- graham-campbell/manager: ^2.0|^3.0|^4.0
- illuminate/support: ~5.0|~6.0
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-04-20 11:37:09 UTC
README
本想改写一下变成swoft里能用的,后来发现了另一个也比较好用,建议用这个 https://github.com/Hanson/open-taobao-sdk
~/swoft/vendor/yijie/easytbk git add . && git commit -m 'test' && git push
介绍
淘宝联盟、京东联盟、多多进宝SDK封装,有bug或者新增api请提交PR
联系方式
微信:bugfixed
使用方法
1、安装扩展包
composer require niugengyun/easytbk
2、执行下面的命令,然后修改config/easytbk.php
php artisan vendor:publish --provider "Yijie\EasyTBK\ServiceProvider"
3、淘宝SDK初始化
<?php use Yijie\EasyTBK\Factory; use Yijie\EasyTBK\TaoBao\Request\TbkItemInfoGetRequest; $client = Factory::taobao (); $req = new TbkItemInfoGetRequest; $req->setNumIids ($numIids); return $client->execute ($req);
4、京东、拼多多SDK初始化基本一样,自己摸索