通用说明 #
通用说明 #
厦门航空为满足开发者的业务诉求,将厦航业务能力以api形式开放出来,提供给取得开发者资质的开发者使用。在得到厦门航空授权后,第三方平台开发者可以通过调用厦航开放的接口能力,为第三方平台提供服务。
接入说明 #
开发者可以获取各个社交媒体平台用户绑定总数,通过调用厦航提供的各个社媒渠道绑定人数接口获取今日之前发展的会员数量以便分析以便分析用户在各个平台的活跃度。
接入方式 #
- 开发者直接调用提供的查询统计接口
接口说明 #
各社媒渠道关联账号的人数 #
接口地址 /bind/thdpt/count
请求方式 GET
consumes ``
produces ["*/*","application/json"]
接口描述 ``
请求参数
暂无
响应状态
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResultBean«BindThdptCountResponse» |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
响应参数
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| code | 接口调用状态(200:调用成功,201:参数错误,300:权限异常,400:业务异常,500:服务异常) | string | |
| data | 数据内容 | BindThdptCountResponse | BindThdptCountResponse |
| errStr | 业务错误码 | string | |
| message | 接口调用状态信息 | string |
schema属性说明
BindThdptCountResponse
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| bindThdptDTOList | 各平台绑定情况 | array | BindThdptDTO |
BindThdptDTO
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| bindAppId | 绑定平台 | string | |
| bindNum | 绑定人数 | integer(int32) |
响应示例
{
"code": "200",
"data": {
"bindThdptDTOList": [
{
"bindAppId": "alipay",
"bindNum": 10000
}
]
},
"errStr": "",
"message": ""
}
各社媒渠道入会的人数 #
接口地址 /rgsted/thdpt/count
请求方式 GET
consumes ``
produces ["*/*","application/json"]
接口描述 ``
请求参数
暂无
响应状态
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResultBean«RgsterThdptResponse» |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
响应参数
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| code | 接口调用状态(200:调用成功,201:参数错误,300:权限异常,400:业务异常,500:服务异常) | string | |
| data | 数据内容 | RgsterThdptResponse | RgsterThdptResponse |
| errStr | 业务错误码 | string | |
| message | 接口调用状态信息 | string |
schema属性说明
RgsterThdptResponse
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| rgsterhdptDTOList | 各平台绑定情况 | array | RgsterhdptDTO |
RgsterhdptDTO
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| rgstChnlCd | 入会平台 | string | |
| rgstNum | 入会人数 | integer(int32) |
响应示例
{
"code": "200",
"data": {
"rgsterhdptDTOList": [
{
"rgstChnlCd": "01",
"rgstNum": 10000
}
]
},
"errStr": "",
"message": ""
}
各社媒渠道解绑的人数 #
接口地址 /unbind/thdpt/count
请求方式 GET
consumes ``
produces ["*/*","application/json"]
接口描述 ``
请求参数
暂无
响应状态
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResultBean«UnBindThdptCountResponse» |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
响应参数
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| code | 接口调用状态(200:调用成功,201:参数错误,300:权限异常,400:业务异常,500:服务异常) | string | |
| data | 数据内容 | UnBindThdptCountResponse | UnBindThdptCountResponse |
| errStr | 业务错误码 | string | |
| message | 接口调用状态信息 | string |
schema属性说明
UnBindThdptCountResponse
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| unBindThdptDTOList | 各平台绑定情况 | array | UnBindThdptDTO |
UnBindThdptDTO
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| bindAppId | 绑定平台 | string | |
| unBindNum | 绑定人数 | integer(int32) |
响应示例
{
"code": "200",
"data": {
"unBindThdptDTOList": [
{
"bindAppId": "alipay",
"unBindNum": 10000
}
]
},
"errStr": "",
"message": ""
}