Commit 9d64d928 by 李进峰

update

parent 1ef05fe9
......@@ -273,7 +273,7 @@ SUCCESS:
{
"code": 1,
"data": {
"status":1
"status":1 // 1:表示广告已经看完; 0: 表示没有
},
"msg": "成功"
}
......@@ -293,4 +293,62 @@ curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/dispatch' \
"params":"{\"uid\":\"123\",\"controlId\":\"1231\"}",
"body":""
}'
```
##### 广告展示完成回调接口
URL: {BaseUrl}:18082/api/ad/v2/callback/status
Method: POST
Headers:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret+":"+timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestParams:
| 字段 | 描述|
| :----------- | :------------ |
| uid | 用户ID, 必填 |
RequestBody:
```
{
"controlId":"changweiba2", // 控制点ID
"status": 1, // 状态, 0: 表示失败 1: 表示成功
"workName":"长尾巴兔子", // 作品名
"channelId":"xtcv1-watch-sdk-test" // 渠道ID
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"data": null
"msg": "成功"
}
```
Example:
```
curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/ad/v2/callback/status?uid=6125f09aa02e9100014eaf57' \
--header 'App-Channel-Id: jiaoyoutianxia-test' \
--header 'Timestamp: 1658458063134' \
--header 'Authorization: a4bf2d13b655364c5250c1ab722fd6f8' \
--header 'Content-Type: application/json' \
--data-raw '{
"controlId":"changweiba2",
"status": 1,
"workName":"长尾巴兔子",
"channelId":"xtcv1-watch-sdk-test"
}'
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment