接口使用场景等说明:本接口用于查询联盟帐号下的渠道id信息。
| 环境 | http 地址 | https 地址 | 
|---|---|---|
| 正式环境 | http://api.veapi.cn/tbk/publisherget | 暂无 | 
| 参数名称 | 参数类型 | 必填 | 示例值 | 描述 | 
|---|---|---|---|---|
| vekey | String | 是 | V123M56 | 公共参数,接口秘钥,请在会员中心获取 | 
| info_type | Number | 否 | 1(默认) | 备案类型,可选值含义:1:渠道信息;2:会员信息(比价查询sid时要用) | 
| relationId | Number | 否 | 渠道关系ID。如果指定本值,则只查询该渠道ID的信息,而不是查您联盟号下全部渠道关系。 | |
| relation_app | Number | 否 | common(默认) | 渠道推广的物料类型。 | 
| page_no | Number | 否 | 1 | 第几页 | 
| page_size | Number | 否 | 10 | 每页大小 | 
| special_id | String | 否 | 1212 | 会员独占 - 会员运营ID | 
| external_id | String | 否 | 12345 | 淘宝客外部用户标记,如自身系统账户ID;微信ID等 | 
| external_type | Number | 否 | 0 | 1-微信、2-微博、3-抖音、4-快手、5-QQ,0-其他;默认为0 | 
| sessionkey | String | 否 | 7002 | 多用户专用。如果您的会员卡是多用户版订单查询接口,若要查不同的帐号,请提供该帐号授权的sessionkey值 | 
| account_id | String | 否 | 联盟号id | 会员中心有多个授权时,用本参数指定要查询哪一个联盟号id,联盟号ID请到会员中心授权页查看 | 
GET/POST http://api.veapi.cn/tbk/publisherget?vekey=xxx&info_type=x&其它参数=..【例子】查询帐号下所有会员special_id信息
http://api.veapi.cn/tbk/publisherget?vekey=xxx&info_type=2
$api="http://api.veapi.cn/tbk/publisherget?vekey=xxx&info_type=x&其它参数=.."; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api); //curl_setopt($ch, CURLOPT_POST, true); //POST方式时启用 //curl_setopt($ch, CURLOPT_POSTFIELDS, $postData ); //POST方式时传参 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //如果使用https请启用 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //如果使用https请启用 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); //返回数据流,不直接输出 curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); //使用gzip压缩传输让访问更快 curl_setopt($ch, CURLOPT_TIMEOUT, 6); //允许执行的最长秒数。这里设定6S curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $result = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); echo $result; //返回值
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpRequest;
public class testGetParam {
    public static void main(String[] args) {
        // API网址
        String url = "http://api.veapi.cn/tbk/publisherget?vekey=xxx&info_type=x&其它参数=..";
        // JDK 8u111版本后,若目标页面为HTTPS协议,请启用proxy用户密码鉴权
        //System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
        // 发送请求
        String result = HttpRequest.get(url)
                .timeout(10000)//设置超时,毫秒
                .execute().body();
        System.out.println(result);
    }
}
		import requests # 要访问的API网页 target_url = "http://api.veapi.cn/tbk/publisherget?vekey=xxx&info_type=x&其它参数=.." # 发送请求 response = requests.get(target_url) # 获取页面内容 if response.status_code == 200: print response.text
| 参数名称 | 参数类型 | 示例值 | 描述 | 
|---|---|---|---|
| total_count | Number | 40 | 共享字段-总记录数 | 
| relation_app | String | common | 共享字段 - 备案场景:common(通用备案),etao(一淘备案),minietao(一淘小程序备案),offlineShop(线下门店备案),offlinePerson(线下个人备案) | 
| create_date | Date | 2018-06-01 11:12:23 | 共享字段 - 备案日期 | 
| account_name | String | s**x | 渠道独有-渠道昵称 | 
| real_name | String | xxx | 渠道独有 - 渠道名称 | 
| relation_id | Number | 40232 | 渠道独有-渠道关系ID | 
| offline_scene | String | 门店 | 渠道独有 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 | 
| online_scene | String | 微信群 | 渠道独有 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 | 
| note | String | 小蜜蜂 | 渠道独有 - 媒体侧渠道备注信息 | 
| root_pid | String | mm_1_1_1 | 共享字段 - 渠道/会员专属pid | 
| rtag | String | 123 | 共享字段 - 渠道/会员原始身份信息 | 
| offline_info | Object | 线下 | 线下备案专属信息 | 
| └─ shop_name | String | 日用百货店 | 渠道独有-店铺名称 | 
| └─ shop_type | String | 生活服务类 电信营业厅 | 渠道独有 -店铺类型 | 
| └─ phone_number | String | 1590000000 | 渠道独有-信息 | 
| └─ detail_address | String | **街道**号楼 | 渠道独有-信息 | 
| └─ location | String | 内蒙古自治区 呼和浩特市 | 渠道独有-区 | 
| └─ shop_certify_type | String | 营业执照 | 渠道独有-类型 | 
| └─ certify_number | String | 123445677 | 渠道独有-编号 | 
| └─ career | String | 个人 快递员 | 渠道独有-经营类型 | 
| special_id | Number | 12345 | 会员独有-会员运营ID | 
| punish_status | String | 1 | 渠道独有-处罚状态 | 
| external_id | String | 12345 | 淘宝客外部用户标记,通常是该会员的淘宝号昵称。 | 
| external_type | String | 1 | 1-微信、2-微博、3-抖音、4-快手、5-QQ,0-其他 | 
| root_pid_channel_list | String[] | ["mm_1_1_1"] | 渠道专属pidList | 
{ "error": "0", "msg": "淘宝客信息查询成功!", "data": { "inviter_list": { "map_data": [ { "account_name": "爱**2", "create_date": "2020-05-04 17:51:11", "note": "", "offline_scene": "其他", "online_scene": "其他", "punish_status": "0", "real_name": "周**娜", "relation_app": "common", "relation_id": 23215633, "root_pid": "mm_156663245_2322366_389600002" } ] }, "root_pid_channel_list": { "string": [ "mm_156663245_2322366_389600002" ] }, "total_count": 1 } }