Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李进峰
jiaoyou_doc
Commits
9d64d928
Commit
9d64d928
authored
Jul 22, 2022
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1ef05fe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
1 deletion
+60
-1
ad_api_v2.md
app_doc/ad_api_v2.md
+60
-1
No files found.
app_doc/ad_api_v2.md
View file @
9d64d928
...
@@ -273,7 +273,7 @@ SUCCESS:
...
@@ -273,7 +273,7 @@ SUCCESS:
{
{
"code": 1,
"code": 1,
"data": {
"data": {
"status":1
"status":1
// 1:表示广告已经看完; 0: 表示没有
},
},
"msg": "成功"
"msg": "成功"
}
}
...
@@ -293,4 +293,62 @@ curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/dispatch' \
...
@@ -293,4 +293,62 @@ curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/dispatch' \
"params":"{\"uid\":\"123\",\"controlId\":\"1231\"}",
"params":"{\"uid\":\"123\",\"controlId\":\"1231\"}",
"body":""
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment