Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flutterbest/easytbk
淘客5合一SDK,支持淘宝联盟、京东联盟、多多进宝、唯品会、苏宁
https://github.com/flutterbest/easytbk
alimama composer jingdong pinduoduo
Last synced: 2 months ago
JSON representation
淘客5合一SDK,支持淘宝联盟、京东联盟、多多进宝、唯品会、苏宁
- Host: GitHub
- URL: https://github.com/flutterbest/easytbk
- Owner: flutterbest
- License: mit
- Archived: true
- Created: 2019-01-09T01:24:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T02:14:24.000Z (about 2 years ago)
- Last Synced: 2024-05-19T01:56:25.524Z (7 months ago)
- Topics: alimama, composer, jingdong, pinduoduo
- Language: PHP
- Homepage: http://debug.im
- Size: 552 KB
- Stars: 543
- Watchers: 21
- Forks: 156
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-cn - Easytbk - 淘宝联盟、京东联盟、多多进宝、唯享客、苏宁推客SDK封装。 (配置 Configuration / 第三方api Third Party APIs)
README
# 介绍
淘宝联盟、京东联盟、多多进宝、唯享客、苏宁推客SDK封装,该项目长期维护,如发现问题,请提交PR。
仅支持laravel5-laravel8,这不是可以直接拿来用的返利系统。
# 联系方式
微信:flutter666666
# 安装
1、安装扩展包,该扩展包只支持laravel```bash
composer require niugengyun/easytbk
```2、执行下面的命令,然后修改config/easytbk.php
```bash
php artisan vendor:publish --provider "NiuGengYun\EasyTBK\ServiceProvider"
```# 初始化SDK
每个平台SDK的具体调用方法参考各平台的文档1、淘宝SDK初始化
```php
setNumIids ($numIids);
return $client->execute ($req);
```2、京东SDK初始化
```php
setSkuIds("$itemid");
return $jd->execute($req);
```3、拼多多SDK初始化
```php
setGoodsIdList("[$itemid]");
return $pdd->execute($req);
```4、唯品会SDK初始化
```php
pidNameList = $pidNameList2;
$pidGenRequest1->requestId = "requestId";
dd($service->genPidWithOauth($pidGenRequest1));
```5、苏宁连联盟SDK初始化
```php
setPageNo("1");
$req->setPageSize("10");
$req->setPositionId("12");
$resp = $c->execute($req);
dd($resp);
```