4.1 获取入口域名池列表

本API接口对应的会员中心页面版(入口域名池):

  • https://www.wechaturl.us/user/index.html#business_management/user_short_domain_list

说明:

请求URL:

  • https://wechaturl.us/api/ShortDomain.json

请求方式:

  • POST 或者GET(如果用GET,特殊字符串需要url编码)

参数:

参数名

必选

类型

说明

appid

int

http://www.wechaturl.us/user/index.html 去免费获取appid

appkey

string

http://www.wechaturl.us/user/index.html 去免费获取appkey

type

string

值:list

layer_type

string

目前只支持以下4个值:layer_top(入口域名),layer_hide_1(二级跳转),layer_hide_2(三级跳转),layer_last(四级跳转)

page

int

当前页面,默认为1

rows

int

每页面获取的条数,默认20,最大是50

返回示例

  • https://wechaturl.us/api/ShortDomain.json?type=list&page=1&rows=30&appid=37****15&appkey=a50d38748960******80ae1a725b7c95

{
"code": 1,
"message": "ok.说明:你可以通过layer_type和status进行筛选;如果是拼接网址,请使用layer_type=layer_top",
"data": {
"count": 4,
"list": [
{
"layer_type": "layer_hide_2",
"scheme": "http://",
"domain": "yourdomain1.com",
"status": "4000",
"is_monitor": "0",
"is_wide_resolve": "0"
},
{
"layer_type": "layer_last",
"scheme": "http://",
"domain": "yourdomain2.com",
"status": "4000",
"is_monitor": "0",
"is_wide_resolve": "0"
},
{
"layer_type": "layer_hide_1",
"scheme": "http://",
"domain": "yourdomain3.com",
"status": "4000",
"is_monitor": "0",
"is_wide_resolve": "0"
},
{
"layer_type": "layer_top",
"scheme": "http://",
"domain": "yourdomain4.com",
"status": "4000",
"is_monitor": "0",
"is_wide_resolve": "0"
}
]
}
}

查看所有CODE、STATUS值含义