# 苹果商店接口
域名:
| 环境 | 域名 | 说明 |
|---|---|---|
| 测试环境 | http://yrxd.test.creditease.cn/ | 可以直接访问 |
| 生产环境 | https://www.yxh2.cn | 可以直接访问 |
# 排重接口
BASIC
Path: /api/advert/apple/distinct
Method: GET
REQUEST
Query:
| name | value | required | desc |
|---|---|---|---|
| appid | YES | 应用在APPStore中的唯一ID | |
| idfa | YES | 设备的IDFA | |
| source | YES | 广告平台标识,参数类型:string,如:judian |
Request Demo:
http://www.test.com/api/advert/apple/distinct?appid={广告主应用 id}&idfa={idfa}&source={source}
1
RESPONSE
Headers:
| name | value | required | desc |
|---|---|---|---|
| content-type | application/json;charset=UTF-8 | NO |
Body:
| name | type | desc |
|---|---|---|
| data | json | key: idfa value: 1表示已安装,0表示未安装 |
| code | integer | 响应码,0表示成功,其余表示失败 |
| msg | string | 响应信息,例如:成功 |
Response Demo:
{
"data": {
"10BF16E6-0A58-44CF-A4AB-4EA15F456876":1
},
"code": 0,
"msg": "成功"
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# 点击接口
BASIC
Path: /api/advert/apple/click
Method: POST
REQUEST
Headers:
| name | value | required | desc |
|---|---|---|---|
| Content-Type | application/json | YES |
Request Body:
| name | type | required | desc |
|---|---|---|---|
| source | string | yes | 广告平台标识,参数类型:string,如:judian |
| appid | string | yes | 应用在APPStore中的唯一ID |
| idfa | string | yes | 设备的IDFA |
| ip | string | no | 用户客户端ip |
| callbackurl | string | no | 回调通知广告平台。 |
| ua | string | no | 用户客户端 user-agent |
Request Demo:
{
"source": "",
"appid": "",
"idfa": "",
"ip": "",
"callbackurl": "",
"ua": ""
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
RESPONSE
Headers:
| name | value | required | desc |
|---|---|---|---|
| content-type | application/json;charset=UTF-8 | NO |
Body:
| name | type | desc |
|---|---|---|
| code | integer | 响应码,0表示成功,其余表示失败 |
| msg | string | 响应信息,例如:成功 |
Response Demo:
{
"code": 0,
"msg": "成功"
}
1
2
3
4
2
3
4
# 激活上报接口
BASIC
Path: /api/advert/apple/report
Method: POST
REQUEST
Headers:
| name | value | required | desc |
|---|---|---|---|
| Content-Type | application/json | YES |
Request Body:
| name | type | required | desc |
|---|---|---|---|
| source | string | yes | 广告平台标识,参数类型:string,如:judian |
| appid | string | yes | 应用在APPStore中的唯一ID |
| idfa | string | yes | 设备的IDFA |
| ip | string | no | 用户客户端ip |
| callbackurl | string | no | 回调通知广告平台。 |
| ua | string | no | 用户客户端 user-agent |
Request Demo:
{
"source": "",
"appid": "",
"idfa": "",
"ip": "",
"callbackurl": "",
"ua": ""
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
RESPONSE
Headers:
| name | value | required | desc |
|---|---|---|---|
| content-type | application/json;charset=UTF-8 | NO |
Body:
| name | type | desc |
|---|---|---|
| code | integer | 响应码,0表示成功,其余表示失败 |
| msg | string | 响应信息,例如:成功 |
Response Demo:
{
"code": 0,
"msg": "成功"
}
1
2
3
4
2
3
4
← 普短