获取海王用户权限包
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
identify_type | String | 必须 | alibaba | 验证类型 | |
identifier | String | 必须 | 10000 | 验证类型下的唯一id |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
service_pack_list | Result [] | [] | 权限包列表 |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaSeakingServicepackRequest req = new AlibabaSeakingServicepackRequest(); req.setIdentifyType( "alibaba" ); req.setIdentifier( "10000" ); AlibabaSeakingServicepackResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 | < alibaba_seaking_servicepack_response > < service_pack_list > < result > < validate_to >2029-08-07 17:48:03</ validate_to > < name >Base</ name > < id >1</ id > </ result > </ service_pack_list > </ alibaba_seaking_servicepack_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 > |
错误码 | 错误描述 | 解决方案 |
---|