xidiankeji / pinduoduo-sdk
There is no license information available for the latest version (1.0) of this package.
1.0
2018-05-24 09:49 UTC
Requires
- php: >=5.4.0
- illuminate/support: ~5.0|~5.1|~5.2|~5.3|~5.4|~5.5|~5.6
This package is auto-updated.
Last update: 2025-03-12 20:07:37 UTC
README
拼多多api-sdk laravel 版本
Installation
$ composer require "composer require xidiankeji/pinduoduo-sdk"
然后添加服务: 修改 config/app.php
添加Xidiankeji\Pinduoduo\PinduoduoServiceProvider::class
别名的配置: 'Pinduoduo' => Xidiankeji\Pinduoduo\Facades\Pinduoduo::class
执行
$ php artisan vendor:publish
选择Provider: Xidiankeji\Pinduoduo\PinduoduoServiceProvider
选项
config目录下会生成 pinduouo.php
文件 修改配置文件即可
支持CMS商城链接生成
USE
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Pinduoduo; use Xidiankeji\Pinduoduo\Request\DdkGoodsDetailRequest; class IndexController extends Controller { public function index() { $request = new DdkGoodsDetailRequest(); $request->setGoodsIdList('[1016692240]'); $result = Pinduoduo::excute($request); dd($result); } }