All Projects → flutterbest → Easytbk

flutterbest / Easytbk

Licence: mit
淘客5合一SDK,支持淘宝联盟、京东联盟、多多进宝、唯品会、苏宁

Labels

Projects that are alternatives of or similar to Easytbk

Graby
Graby helps you extract article content from web pages
Stars: ✭ 281 (-26.63%)
Mutual labels:  composer
Cordova Plugin Email Composer
Edit and send email messages
Stars: ✭ 333 (-13.05%)
Mutual labels:  composer
Laravel Feed
Laravelium Feed package for Laravel.
Stars: ✭ 356 (-7.05%)
Mutual labels:  composer
Composer Bin Plugin
No conflicts for your bin dependencies
Stars: ✭ 287 (-25.07%)
Mutual labels:  composer
Awps
A Modern WordPress Starter Theme for savvy Developers
Stars: ✭ 319 (-16.71%)
Mutual labels:  composer
Gameq
A PHP Gameserver Status Query Library
Stars: ✭ 342 (-10.7%)
Mutual labels:  composer
Mozart
Developers tool for WordPress plugins: Wraps all your projects dependencies in your own namespace, in order to prevent conflicts with other plugins loading the same dependencies in different versions.
Stars: ✭ 277 (-27.68%)
Mutual labels:  composer
Unused Scanner
Detect unused composer dependencies
Stars: ✭ 363 (-5.22%)
Mutual labels:  composer
Docker Php
Adding common PHP extensions to some of the official PHP Docker images.
Stars: ✭ 324 (-15.4%)
Mutual labels:  composer
Flex
Composer plugin for Symfony
Stars: ✭ 3,731 (+874.15%)
Mutual labels:  composer
Tbk
可能是最优雅、简易的淘宝客SDK
Stars: ✭ 288 (-24.8%)
Mutual labels:  composer
Jwt Auth Guard
JWT Auth Guard for Laravel and Lumen Frameworks.
Stars: ✭ 319 (-16.71%)
Mutual labels:  composer
Idea Composer Plugin
PhpStorm plugin that adds code completion in composer.json file
Stars: ✭ 346 (-9.66%)
Mutual labels:  composer
Logistics
PHP 多接口获取快递物流信息包
Stars: ✭ 287 (-25.07%)
Mutual labels:  composer
Codeigniter Composer Installer
Installs the offical CodeIgniter 3 with secure folder structure via Composer
Stars: ✭ 357 (-6.79%)
Mutual labels:  composer
Repman
Repman - PHP Repository Manager: packagist proxy and host for private packages
Stars: ✭ 277 (-27.68%)
Mutual labels:  composer
Laravel Api
Laravel API starter Kit will provide you with the tools for making API's that everyone will love
Stars: ✭ 334 (-12.79%)
Mutual labels:  composer
Coastercms
The repository for Coaster CMS (coastercms.org), a full featured, Laravel based Content Management System
Stars: ✭ 380 (-0.78%)
Mutual labels:  composer
Arrayy
🗃 Array manipulation library for PHP, called Arrayy!
Stars: ✭ 363 (-5.22%)
Mutual labels:  composer
Composer Doc Cn
Composer 中文文档(新版本文档重新翻译中,详见 1.6分支)
Stars: ✭ 346 (-9.66%)
Mutual labels:  composer

介绍

这个SDK只支持laravel!

这个SDK只支持laravel!

这个SDK只支持laravel!

这个SDK只支持laravel!

这个SDK只支持laravel!

这个SDK只支持laravel!

淘宝联盟、京东联盟、多多进宝、唯品客、苏宁推客SDK封装,该项目长期维护,如发现问题,请提交PR。

联系方式

微信:buxiedaima QQ:515343908

安装

1、安装扩展包,该扩展包只支持laravel

composer require niugengyun/easytbk

2、执行下面的命令,然后修改config/easytbk.php

php artisan vendor:publish --provider "NiuGengYun\EasyTBK\ServiceProvider"

初始化SDK

每个平台SDK的具体调用方法参考各平台的文档

1、淘宝SDK初始化

<?php
use NiuGengYun\EasyTBK\Factory;
use NiuGengYun\EasyTBK\TaoBao\Request\TbkItemInfoGetRequest;

$client = Factory::taobao ();
$req = new TbkItemInfoGetRequest;
$req->setNumIids ($numIids);
return $client->execute ($req);

2、京东SDK初始化

<?php
use NiuGengYun\EasyTBK\Factory;
use NiuGengYun\EasyTBK\JingDong\Request\JdUnionGoodsPromotiongoodsinfoQueryRequest;

$jd = Factory::jingdong();
$req = new JdUnionGoodsPromotiongoodsinfoQueryRequest();
$req->setSkuIds("$itemid");
return $jd->execute($req);

3、拼多多SDK初始化

<?php
use NiuGengYun\EasyTBK\Factory;
use NiuGengYun\EasyTBK\PinDuoDuo\Request\DdkGoodsDetailRequest;

$pdd = Factory::pinduoduo();
$req = new DdkGoodsDetailRequest();
$req->setGoodsIdList("[$itemid]");
return  $pdd->execute($req);

4、唯品会SDK初始化

<?php
use NiuGengYun\EasyTBK\Factory;
use NiuGengYun\EasyTBK\Vip\Request\PidGenRequest;
use NiuGengYun\EasyTBK\Vip\Request\UnionPidServiceClient;

// 唯品会官方的sdk写的比较垃圾,用法和其他平台稍微不一样
$service= UnionPidServiceClient::getService();
Factory::vip();
$pidGenRequest1 = new PidGenRequest();
$pidNameList2 = array();
$pidNameList2[0] = "value";
$pidGenRequest1->pidNameList = $pidNameList2;
$pidGenRequest1->requestId = "requestId";
dd($service->genPidWithOauth($pidGenRequest1));

5、苏宁连联盟SDK初始化

<?php
use NiuGengYun\EasyTBK\Factory;
use NiuGengYun\EasyTBK\SuNing\Request\Netalliance\CouponproductQueryRequest;

$c = Factory::suning();
$req = new CouponproductQueryRequest();
$req->setPageNo("1");
$req->setPageSize("10");
$req->setPositionId("12");
$resp = $c->execute($req);
dd($resp);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].