神鲸用户的基本信息查询,根据PERSON_ID或者用户ACCOUNT_ID查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
account_id | String | 可选 | "1" | 用户ACCOUNT_ID | |
person_id | Number | 可选 | 1 | 用户ID | |
app_id | String | 可选 | "1" | 应用ID | |
operator_id | String | 可选 | "1" | 操作人ID |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | PojoResult | {"content":{"accountId":1,"id":1,"name":"张三","mobile":"13071301301"},"errorMsg":"success","success":true} | result |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaIworkCoreHrsGetpersonRequest req = new AlibabaIworkCoreHrsGetpersonRequest(); req.setAccountId( "\"1\"" ); req.setPersonId(1L); req.setAppId( "\"1\"" ); req.setOperatorId( "\"1\"" ); AlibabaIworkCoreHrsGetpersonResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 | < alibaba_iwork_core_hrs_getperson_response > < result > < content >{"accountId":1,"id":1,"name":"张三","mobile":"13071301301"}</ content > < request_id >"1"</ request_id > < error_code >200</ error_code > < error_msg >200</ error_msg > < success >true</ success > < error_level >"1"</ error_level > </ result > </ alibaba_iwork_core_hrs_getperson_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 > |
错误码 | 错误描述 | 解决方案 |
---|