多多进宝转链
POST
/gateway/pdd.ddk.oauth.goods.zs.unit.url.gen
请求参数
Body 参数application/json
openId
string
用户身份Id
pid
string
推广位
sourceUrl
string
推广链接
generateSchemaUrl
string | null
是否返回 schema URL
customParameters
string | null
非必填 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;
示例
{
"openId": "d667dc3b-d071-48c2-a3d3-12654b7e270e",
"pid": "20890148_208644564",
"sourceUrl": "https://p.pinduoduo.com/vgPnfaZJ"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://union.lottefuture.com/gateway/pdd.ddk.oauth.goods.zs.unit.url.gen' \
--header 'Content-Type: application/json' \
--data-raw '{
"openId": "d667dc3b-d071-48c2-a3d3-12654b7e270e",
"pid": "20890148_208644564",
"sourceUrl": "https://p.pinduoduo.com/vgPnfaZJ"
}'
返回响应
🟢200成功
application/json
Body
url
string
单人团推广长链接
shortUrl
string