用户视角获取商家知识库解决方案数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
from | String | 必须 | shangjiajiqiren | 调用的业务来源 | |
ref | String | 可选 | ar | 表示操作的数据类型,ar表示自动回复,us表示用户签名,pw为团队禁语 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
user_package | UserSolutionModel | {} | 用户视角对象 对象包含三个部分 * 用户解决方案对象(user_solutions.user_solution) 此对象包含用户草稿里的所有解决方案实体,在ref是自动回复时,这里列出的是用户设置的所有可选择的自动回复,当rf为用户签名时,这里列出所有的用户签名草稿。rf为禁语时,此字段为空 * 用户设置(content) 此对象包含用户草稿里的所有解决方案实体,在ref是自动回复时,格式为:{ "busy":1175, #忙时的自动回复ID "leave":1122, #离开时的自动回复ID "first":4114, #新客的自动回复ID "maxService":5112,#最大服务人数的自动回复ID "maxServiceNum":10 #最大服务人数 },当rf为用户签名时,格式为:{ "curId":55 #用户生效的签名ID }。rf为禁语时,此字段为空 * 用户设置(content) 此对象包含用户草稿里的所有解决方案实体,在ref是自动回复时,格式为:{ "busy":1175, #忙时的自动回复ID "leave":1122, #离开时的自动回复ID "first":4114, #新客的自动回复ID "maxService":5112,#最大服务人数的自动回复ID "maxServiceNum":10 #最大服务人数 },当rf为用户签名时,格式为:{ "curId":55 #用户生效的签名ID }。rf为禁语时,此字段为空 * 当前用户关联的团队数据(team_package) 团队数据结构和个人结构相同,只是和当前用户关联的团队数据为一个数组,自动回复和用户签名数组长度为1,禁语长度不限 |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); QianniuSolutionGetRequest req = new QianniuSolutionGetRequest(); req.setFrom( "shangjiajiqiren" ); req.setRef( "ar" ); QianniuSolutionGetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | < qianniu_solution_get_response > < user_package > < user_datas > < solution_d_o > < id >312312</ id > < content >你好,欢迎光临</ content > < gmt_create >2017-01-01 10:00:00</ gmt_create > < gmt_modified >2017-01-01 10:00:00</ gmt_modified > </ solution_d_o > </ user_datas > < user_solutions > < solution_d_o > < id >312312</ id > < content >你好,欢迎光临</ content > < gmt_create >2017-01-01 10:00:00</ gmt_create > < gmt_modified >2017-01-01 10:00:00</ gmt_modified > </ solution_d_o > </ user_solutions > < team_package > < version >1</ version > < team_solutions > < solution_d_o > < id >312312</ id > < content >你好,欢迎光临</ content > < gmt_create >2017-01-01 10:00:00</ gmt_create > < gmt_modified >2017-01-01 10:00:00</ gmt_modified > </ solution_d_o > </ team_solutions > < team_datas > < team_data_d_o > < content >你好,欢迎光临</ content > < can_modify >11</ can_modify > < id >11</ id > </ team_data_d_o > </ team_datas > </ team_package > </ user_package > </ qianniu_solution_get_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|