opensdk / pinduoduo
拼多多API SDK
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:libaray
Requires
- php: >=7.0.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- php: >=7.0.0
README
介绍
本类库是对拼多多开放平台API的封装
接口文档请参见 拼多多开放平台
使用示例
require 'vendor/autoload.php'; use OpenSDK\PinDuoDuo\Client; use OpenSDK\PinDuoDuo\Requests\PddDdkCmsPromUrlGenerateRequest; $c = new Client(); $c->appKey = 'You are appKey'; $c->appSecret = 'You are appSecret'; $req = new PddDdkCmsPromUrlGenerateRequest(); $req->setWeAppWebViewShortUrl(true); $req->setWeAppWebViewUrl(true); $req->setPidList(['xxxx_xxxxx']); $c->setRequest($req); $result = $c->execute(); var_dump($result);