Skip to content

多多客【多多进宝】API SDK【拼多多开放平台】

Notifications You must be signed in to change notification settings

l1n6yun/duoduoke-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

多多客API SDK【拼多多开放平台】

要求

  1. PHP >= 7.0
  2. ext-curl 拓展
  3. ext-json 拓展

安装

composer require l1n6yun/duoduoke-sdk

使用

use l1n6yun\DuoDuoKe\DuoDuoKe;

$config = [
    'app_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'debug' => false,
    'log' => [
        'name' => 'DuoDuoKe',
        'file' => __DIR__ . '/DuoDuoKe.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
];

$duoduoke = new DuoDuoKe($config);

调用示例

多多进宝商品详情查询 pdd.ddk.goods.detail

$result = $duoduoke->request('pdd.ddk.goods.detail', ['goods_id_list' => ['395581006']]);

文档

拼多多开放平台 · 官方文档

About

多多客【多多进宝】API SDK【拼多多开放平台】

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages