工具商获取推广链接
POST
/gateway/jd.union.open.promotion.byunionid.get
请求参数
Body 参数application/json
unionId
string
联盟Id
materialId
string
推广链接
positionId
string
推广位id
couponUrl
string | null
可选
chainType
null
转链类型
示例
{
"unionId": "2014274090",
"materialId": "https://u.jd.com/ht07jA9",
"couponUrl": "http://sslf.sr/jkekqcq"
}
示例代码
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/jd.union.open.promotion.byunionid.get' \
--header 'Content-Type: application/json' \
--data-raw '{
"unionId": "2014274090",
"materialId": "https://u.jd.com/ht07jA9",
"couponUrl": "http://sslf.sr/jkekqcq"
}'
返回响应
🟢200成功
application/json
Body
shortURL
string
必需
clickURL
string
必需
jCommand
string
必需
jShortCommand
string
必需
weChatShortLink
string
必需
示例
{
"shortURL": "https://u.jd.com/htTocFj",
"clickURL": "https://union-click.jd.com/jdc?e=1001132658&p=JF8BANgJK1olXDYCVV9cDU4SAGoLHlslGVlaCgFtUQ5SQi0DBUVNGFJeSwJCUx4IUTFUBRpWA1NGBhtDCEoWAmoNHlgQXgMCSwcYVBYnQm5sTgZXJWNiNTxDDxB2YgsAHw4PPQoOZF9tC0oXBmwOHlodXDYyVF5tXiUXAm4JGV0cXAQBZF9tCEwRAGkNHVwSXg4CVW5dAEwn19iLz-yWXgMBUW5tCXsUM28JGlsVXwUFUFdtOEsnAF9WdVpGWwUABlhbZhZFVWhLWlwcMw4BV1xYCEoeM20JGlkXbTY",
"jCommand": "",
"jShortCommand": "",
"weChatShortLink": ""
}
修改于 2023-03-27 09:07:13