jayfir/mn-sys-pdd

JayFir系统多多进宝集成包

Installs: 56

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii-extension

1.0.9 2018-05-28 06:39 UTC

This package is not auto-updated.

Last update: 2024-10-27 23:59:21 UTC


README

jayfir 拼多多集成包

注意

因拼多多官方刚上线联盟模式,在接口调用方面经常调整,本组件会根据官方修改不时变动,请开发者注意!

配置Yii组件

common\config\main.php
        components=>[

         'pdd' => [
                    'class' => 'jayfir\pdd\PopClient',
                    'appkey' => '***',
                    'secretKey' => '**',
                    'format' => 'JSON'
                ],
        ]

调用方式

example:

$req = new \jayfir\pdd\request\ItemSearchRequest();

        $req->setSortType(2);
        $req->setWithCoupon('true');
        $result = \Yii::$app->pdd->execute($req);