# 接收撞库模型
域名:
- 测试环境:http://yrxd.test.creditease.cn
- 生产环境:http://www.yxh2.cn
签名:
请求接口需要签名验证,签名时,将所有参数按照参数名的字母顺序从小到大进行排序,然后将排序后的参数按照“参数名=参数值”的格式用“&”符拼接起来,并在最后拼接“&key=${key}”,最后进行签名计算。
注意:sign参数不参与签名,当参数为数组、列表、获取对象时,参与签名的参数值为使用fastjson序列化为JSON字符串。
盐key:线下给
例:
xxxxxxxxxxxxxxxxxxxxxxxxx
1
例:
md5("collisionModelList=[{"phoneMd5":"1","modelFlag":"1"},{"phoneMd5":"2","modelFlag":"2"}]&utmSource=test_test&key=xxxxxxxxxxxxxxxxxxxxxxxxx")
# 接收投放撞库模型
BASIC
Path: /api/collision/v1/advert/collision/model
Method: POST
REQUEST
Headers:
name | value | required | desc |
---|---|---|---|
Content-Type | application/json | YES |
Request Body:
name | type | 必填 | desc |
---|---|---|---|
collisionModelList | array | Y | 参数列表,最多1000 |
|─ | object | ||
|─phoneMd5 | string | Y | phone_md5 |
|─modelFlag | string | Y | 模型标识,长度最多50个字符 |
utmSource | string | Y | 渠道 e.g. yrxd_web |
sign | string | Y | 签名 e.g. 202cb962ac59075b2d234b70964b0715 |
Request Demo:
{
"collisionModelList": [
{
"phoneMd5": "1",
"modelFlag": "1"
},
{
"phoneMd5": "2",
"modelFlag": "2"
}
],
"utmSource": "test_test",
"sign": "3916fb0a3282034feafdb3d75e060202"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
RESPONSE
Headers:
name | value | required | desc |
---|---|---|---|
content-type | application/json;charset=UTF-8 | NO |
Body:
name | type | 必填 | desc |
---|---|---|---|
status | string | Y | "0000" 成功,其他失败 |
msg | string | Y | |
data | object | N |
Response Demo:
{
"status": "",
"msg": "",
"data": null
}
1
2
3
4
5
2
3
4
5
# 状态码status定义
状态码status | 描述 |
---|---|
0000 | 正常返回 |
9999 | 处理失败 |