查询员工智能名片信息
企业可通过此接口查询员工智能名片信息
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/user/query_user_card_info
Query参数:
参数 |
类型 |
必填 |
说明 |
access_token |
string |
是 |
调用接口凭证 |
Body参数:
{
"user_id": "test_b98ef901a58e"
}
参数 |
类型 |
必填 |
说明 |
user_id |
string |
是 |
员工Id |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"material_id": 97,
"user_id": "test_9b9b045abbac",
"field_list": [
{
"field_code": "test_71eb2ff8e431",
"field_type": 1,
"field_name": "test_c99f6228f12f",
"is_enable": 1,
"is_user_enable": 1,
"field_alias": "test_2018a6b58f14",
"sort_num": 70,
"is_sort_field": false,
"field_info": {
"fill_text": "test_145835b4742b",
"fill_text_list": [
"test_3d97da595c04"
],
"fill_image_url": "test_49374db95592",
"custom_text": "test_60a8b1b98f33",
"custom_image_url": "test_c47de62cedd4",
"custom_redirect_url": "test_05eb1b34b541"
}
}
]
}
}
返回说明:
参数 |
类型 |
说明 |
code |
int |
出错返回码,为0表示成功,非0表示调用失败 |
msg |
string |
返回码描述 |
data |
object |
响应对象 |
material_id |
long |
素材id |
user_id |
string |
员工id |
field_list |
object[] |
字段信息列表 |
field_code |
string |
字段编码 |
field_type |
int |
字段类型,与字段编码对应.1-文本,2-文本数组,3-图片,4-自定义文本,5-自定义图片 |
field_name |
string |
字段名称,与字段编码对应 |
is_enable |
int |
是否启用,0-不启用,1-启用; |
is_user_enable |
int |
用户是否启用,0-不启用,1-启用; |
field_alias |
string |
字段别名 |
sort_num |
int |
排序字段 |
is_sort_field |
bool |
是否为排序字段 |
field_info |
object |
字段参数信息对象 |
fill_text |
string |
填充文本 |
fill_text_list |
array |
文本列表 |
fill_image_url |
string |
填充图片地址 |
custom_text |
string |
自定义文本 |
custom_image_url |
string |
自定义图片地址 |
custom_redirect_url |
string |
自定义跳转链接 |
field_info说明
field_type=1,文本
参数 |
类型 |
说明 |
fill_text |
string |
填充文本 |
field_type=2,文本数组
参数 |
类型 |
说明 |
fill_text_list |
array |
填充文本 |
field_type=3,图片
参数 |
类型 |
说明 |
fill_image_url |
string |
填充图片地址 |
field_type=4,自定义文本
参数 |
类型 |
说明 |
custom_text |
string |
自定义文本 |
field_type=5,自定义图片
参数 |
类型 |
说明 |
custom_image_url |
string |
自定义图片地址 |
custom_redirect_url |
string |
自定义跳转链接 |
field_code说明
字段名 |
字段编码 |
是否默认允许编辑 |
字段类型 |
备注 |
头像 |
avatar |
是 |
1-文本 |
10M |
姓名 |
name |
是 |
1-文本 |
10 |
企业简称 |
corp_name |
是 |
1-文本 |
8 |
职务 |
position |
是 |
1-文本 |
8 |
所属部门 |
department |
是 |
1-文本 |
8 |
企业Logo |
corp_logo |
是 |
3-图片 |
10M |
个人标签 |
personal_tags |
是 |
2-文本数组 |
|
联系电话 |
mobile |
是 |
1-文本 |
30 |
邮箱 |
email |
是 |
1-文本 |
30 |
办公地址 |
office_address |
是 |
1-文本 |
30 |
个人简介 |
personal_profile |
是 |
1-文本 |
200 |
持有证书 |
holding_certificates |
是 |
2-文本数组 |
5个证书,每个最多30 |
自定义信息(文本) |
custom_text_{n} |
是 |
4-自定义文本 |
200,支持网页跳转 |
自定义信息(图片) |
custom_image_{n} |
是 |
5-自定义图片 |
|
自定义标签 |
custom_tag_{n} |
是 |
2-文本数组 |
15个标签,每个最多50个字 |