接口地址:http://api.tkurl.top/api/publisher/info
返回格式:json
请求方式:get
请求示例:http://api.tkurl.top/api/publisher/info?inviter_code=xxxxxx&return_url=http://api.tkurl.top/api/publisher/msg
请求参数说明:
名称 | 类型 | 是否必须 | 示例值 | 描述 |
---|---|---|---|---|
return_url | String | 选填 | http://www.baidu.com | 备案成功后跳转地址,需将网址进行Urlencode编码,带备案返回数据,不填则返回JSON |
inviter_code | String | 必填 | xxx | 渠道备案 - 淘宝客邀请渠道的邀请码 |
relation_from | String | 选填 | 1 | 渠道备案 - 来源,取链接的来源 |
offline_scene | String | 选填 | 1 | 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 |
online_scene | String | 选填 | 1 | 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 |
note | String | 选填 | 小蜜蜂 | 媒体侧渠道备注 |
oauth_style | String | 选填 | wap | 授权登录页面样式,wap为H5版,web为网页版,不填默认为H5版 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
relation_id | Number | 40232 | 渠道关系ID |
account_name | String | xxx | 渠道昵称 |
special_id | Number | 40232 | 会员运营ID |
desc | String | 绑定成功 | 如果重复绑定会提示:"重复绑定渠道"或"重复绑定粉丝" |
{ "tbk_sc_publisher_info_save_response":{ "data":{ "relation_id":40232, "account_name":"xxx", "special_id":32304, "desc":"绑定成功" } } }
{ "error_response":{ "sub_msg":"非法参数", "code":50, "sub_code":"isv.invalid-parameter", "msg":"Remote service error" } }