public interface WxCpSchoolUserService
| 限定符和类型 | 方法和说明 | 
|---|---|
| WxCpBatchResultList | batchCreateParent(@NonNull WxCpBatchCreateParentRequest request)批量创建家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_parent? | 
| WxCpBatchResultList | batchCreateStudent(@NonNull WxCpBatchCreateStudentRequest request)批量创建学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_student? | 
| WxCpBatchResultList | batchDeleteParent(String... userIdList)批量删除家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_parent? | 
| WxCpBatchResultList | batchDeleteStudent(@NonNull WxCpBatchDeleteStudentRequest request)批量删除学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_student? | 
| WxCpBatchResultList | batchUpdateParent(@NonNull WxCpBatchUpdateParentRequest request)批量更新家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_parent? | 
| WxCpBatchResultList | batchUpdateStudent(@NonNull WxCpBatchUpdateStudentRequest request)批量更新学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_student? | 
| String | convertToOpenId(@NonNull String externalUserId)外部联系人openid转换
 企业和服务商可通过此接口,将微信外部联系人的userid(如何获取?) | 
| WxCpCreateDepartment | createDepartment(@NonNull WxCpCreateDepartmentRequest request)创建部门
 
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/create? | 
| WxCpBaseResp | createParent(@NonNull WxCpCreateParentRequest request)创建家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_parent? | 
| WxCpBaseResp | createStudent(@NonNull String studentUserId,
             @NonNull String name,
             @NonNull List<Integer> departments)创建学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_student? | 
| WxCpBaseResp | deleteDepartment(Integer id)删除部门
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/delete? | 
| WxCpBaseResp | deleteParent(@NonNull String userId)删除家长
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_parent? | 
| WxCpBaseResp | deleteStudent(@NonNull String studentUserId)删除学生
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_student? | 
| WxCpAllowScope | getAllowScope(@NonNull Integer agentId)获取可使用的家长范围
 获取可在微信「学校通知-学校应用」使用该应用的家长范围,以学生或部门列表的形式返回。 | 
| WxCpExternalContact | getExternalContact(@NonNull String externalUserId)获取外部联系人详情
 学校可通过此接口,根据外部联系人的userid(如何获取?) | 
| WxCpOauth2UserInfo | getSchoolUserInfo(@NonNull String code)获取家校访问用户身份
 该接口用于根据code获取家长或者学生信息
 
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo? | 
| Integer | getSubscribeMode()获取关注「学校通知」的模式
 可通过此接口获取家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入”
 
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_mode? | 
| WxCpSubscribeQrCode | getSubscribeQrCode()获取「学校通知」二维码
 学校可通过此接口获取「学校通知」二维码,家长可通过扫描此二维码关注「学校通知」并接收学校推送的消息。 | 
| WxCpUserResult | getUser(@NonNull String userId)读取学生或家长
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/get? | 
| WxCpOauth2UserInfo | getUserInfo(@NonNull String code)获取访问用户身份
 该接口用于根据code获取成员信息
 
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo? | 
| WxCpUserListResult | getUserList(@NonNull Integer departmentId,
           Integer fetchChild)获取部门成员详情
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list? | 
| WxCpListParentResult | getUserListParent(@NonNull Integer departmentId)获取部门家长详情
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list_parent? | 
| WxCpDepartmentList | listDepartment(Integer id)获取部门列表
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/list? | 
| WxCpBaseResp | setArchSyncMode(@NonNull Integer archSyncMode)设置家校通讯录自动同步模式
 企业和第三方可通过此接口修改家校通讯录与班级标签之间的自动同步模式,注意,一旦设置禁止自动同步,将无法再次开启。 | 
| WxCpBaseResp | setSubscribeMode(@NonNull Integer subscribeMode)设置关注「学校通知」的模式
 可通过此接口修改家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入”
 
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/set_subscribe_mode? | 
| WxCpSetUpgradeInfo | setUpgradeInfo(Long upgradeTime,
              Integer upgradeSwitch)修改自动升年级的配置
 请求方式: POST(HTTPS)
 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/set_upgrade_info? | 
| WxCpBaseResp | updateDepartment(@NonNull WxCpUpdateDepartmentRequest request)更新部门
 
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/update? | 
| WxCpBaseResp | updateParent(@NonNull WxCpUpdateParentRequest request)更新家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_parent? | 
| WxCpBaseResp | updateStudent(@NonNull String studentUserId,
             String newStudentUserId,
             String name,
             List<Integer> departments)更新学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_student? | 
WxCpOauth2UserInfo getUserInfo(@NonNull @NonNull String code) throws WxErrorException
请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
code - the codeWxErrorException - the wx error exceptionWxCpOauth2UserInfo getSchoolUserInfo(@NonNull @NonNull String code) throws WxErrorException
请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
code - the codeWxErrorException - the wx error exceptionWxCpBaseResp createStudent(@NonNull @NonNull String studentUserId, @NonNull @NonNull String name, @NonNull @NonNull List<Integer> departments) throws WxErrorException
studentUserId - the student user idname - the namedepartments - the departmentsWxErrorException - the wx error exceptionWxCpBatchResultList batchCreateStudent(@NonNull @NonNull WxCpBatchCreateStudentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpBatchResultList batchDeleteStudent(@NonNull @NonNull WxCpBatchDeleteStudentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpBatchResultList batchUpdateStudent(@NonNull @NonNull WxCpBatchUpdateStudentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpBaseResp deleteStudent(@NonNull @NonNull String studentUserId) throws WxErrorException
studentUserId - the student user idWxErrorException - the wx error exceptionWxCpBaseResp updateStudent(@NonNull @NonNull String studentUserId, String newStudentUserId, String name, List<Integer> departments) throws WxErrorException
studentUserId - the student user idnewStudentUserId - the new student user idname - the namedepartments - the departmentsWxErrorException - the wx error exceptionWxCpBaseResp createParent(@NonNull @NonNull WxCpCreateParentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpBatchResultList batchCreateParent(@NonNull @NonNull WxCpBatchCreateParentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpBatchResultList batchDeleteParent(@NonNull String... userIdList) throws WxErrorException
userIdList - the user id listWxErrorException - the wx error exceptionWxCpBatchResultList batchUpdateParent(@NonNull @NonNull WxCpBatchUpdateParentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpUserResult getUser(@NonNull @NonNull String userId) throws WxErrorException
userId - the user idWxErrorException - the wx error exceptionWxCpUserListResult getUserList(@NonNull @NonNull Integer departmentId, Integer fetchChild) throws WxErrorException
departmentId - 获取的部门idfetchChild - 1/0:是否递归获取子部门下面的成员WxErrorException - the wx error exceptionWxCpListParentResult getUserListParent(@NonNull @NonNull Integer departmentId) throws WxErrorException
departmentId - 获取的部门idWxErrorException - the wx error exceptionWxCpBaseResp updateParent(@NonNull @NonNull WxCpUpdateParentRequest request) throws WxErrorException
request - the requestWxErrorException - the wx error exceptionWxCpBaseResp deleteParent(@NonNull @NonNull String userId) throws WxErrorException
userId - the user idWxErrorException - the wx error exceptionWxCpBaseResp setArchSyncMode(@NonNull @NonNull Integer archSyncMode) throws WxErrorException
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/set_arch_sync_mode?access_token=ACCESS_TOKEN
archSyncMode - 家校通讯录同步模式:1-禁止将标签同步至家校通讯录,2-禁止将家校通讯录同步至标签,3-禁止家校通讯录和标签相互同步WxErrorException - the wx error exceptionWxCpCreateDepartment createDepartment(@NonNull @NonNull WxCpCreateDepartmentRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/create?access_token=ACCESS_TOKEN
request - 请求参数对象WxErrorException - the wx error exceptionWxCpBaseResp updateDepartment(@NonNull @NonNull WxCpUpdateDepartmentRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/update?access_token=ACCESS_TOKEN
request - the requestWxErrorException - the wx error exceptionWxCpBaseResp deleteDepartment(Integer id) throws WxErrorException
id - the idWxErrorException - the wx error exceptionWxCpBaseResp setSubscribeMode(@NonNull @NonNull Integer subscribeMode) throws WxErrorException
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/set_subscribe_mode?access_token=ACCESS_TOKEN
subscribeMode - 关注模式, 1:可扫码填写资料加入, 2:禁止扫码填写资料加入WxErrorException - the wx error exceptionInteger getSubscribeMode() throws WxErrorException
请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_mode?access_token=ACCESS_TOKEN
WxErrorException - the wx error exceptionWxCpExternalContact getExternalContact(@NonNull @NonNull String externalUserId) throws WxErrorException
请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=ACCESS_TOKEN&external_userid =EXTERNAL_USERID
externalUserId - 外部联系人的userid,注意不是学校成员的帐号WxErrorException - the wx error exceptionWxCpAllowScope getAllowScope(@NonNull @NonNull Integer agentId) throws WxErrorException
请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/agent/get_allow_scope?access_token=ACCESS_TOKEN&agentid=AGENTID
agentId - the agent idWxErrorException - the wx error exceptionString convertToOpenId(@NonNull @NonNull String externalUserId) throws WxErrorException
请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/convert_to_openid?access_token=ACCESS_TOKEN
externalUserId - the external user idWxErrorException - the wx error exceptionWxCpDepartmentList listDepartment(Integer id) throws WxErrorException
id - the idWxErrorException - the wx error exceptionWxCpSubscribeQrCode getSubscribeQrCode() throws WxErrorException
WxErrorException - the wx error exceptionWxCpSetUpgradeInfo setUpgradeInfo(Long upgradeTime, Integer upgradeSwitch) throws WxErrorException
upgradeTime - the upgrade timeupgradeSwitch - the upgrade switchWxErrorException - the wx error exceptionCopyright © 2024. All rights reserved.