接口描述
用于获取身份类型列表,对应用户的 idenity_type 字段。
请求方法
POST(application/json)
请求地址
https://open.wecard.qq.com/cgi-bin/user/get-identity-type?access_token=access_token
输入参数
参数名称 | 参数描述 | 参数类型 | 是否必填 | 备注 |
access_token | 应用有效凭证 | String | 是 | 通过获取应用有效凭证接口获取 |
输出参数
参数名称 | 参数描述 | 参数类型 | 是否必填 | 示例 | |
errcode | | 状态码。 0:成功 非0:错误 | Integer | 是 | 0 |
errmsg | | 状态描述信息 | String | 是 | success |
list | identity_type | 身份类型 ID | Integer | 是 | 0 |
| name | 身份类型名称 | String | 是 | 其他 |
| classification | 身份类型分类 ID | Integer | 是 | 1 |
| classification_name | 身份类型分类名称 | String | 是 | 其他 |
示例
输出示例
{"errcode":0,"errmsg":"ok","list":[{"identity_type":0,"name":"其他","classification":1,"classification_name":"其他"},{"identity_type":1,"name":"学生","classification":2,"classification_name":"学生"},{"identity_type":4,"name":"教职工","classification":3,"classification_name":"教职工"},{"identity_type":5,"name":"校友","classification":4,"classification_name":"校友"},{"identity_type":6,"name":"本科生","classification":2,"classification_name":"学生"}]}