jayfir / mn-sys-pdd
JayFir系统多多进宝集成包
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii-extension
pkg:composer/jayfir/mn-sys-pdd
Requires
- php: >=5.6
 - yiisoft/yii2: >=2.0.6
 
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);