From 9d64d92812159b29682069adc1850e8c4b97e404 Mon Sep 17 00:00:00 2001 From: jinfengli Date: Fri, 22 Jul 2022 10:50:11 +0800 Subject: [PATCH] update --- app_doc/ad_api_v2.md | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/app_doc/ad_api_v2.md b/app_doc/ad_api_v2.md index 108b93a..5484320 100644 --- a/app_doc/ad_api_v2.md +++ b/app_doc/ad_api_v2.md @@ -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 -- libgit2 0.27.1