public class WxCpSchoolUserServiceImpl extends Object implements WxCpSchoolUserService
| 构造器和说明 |
|---|
WxCpSchoolUserServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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?
|
WxCpBaseResp |
setArchSyncMode(@NonNull Integer archSyncMode)
设置家校通讯录自动同步模式
企业和第三方可通过此接口修改家校通讯录与班级标签之间的自动同步模式,注意,一旦设置禁止自动同步,将无法再次开启。
|
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?
|
public WxCpBaseResp createStudent(@NonNull @NonNull String studentUserId, @NonNull @NonNull String name, @NonNull @NonNull List<Integer> departments) throws WxErrorException
WxCpSchoolUserServicecreateStudent 在接口中 WxCpSchoolUserServiceWxErrorExceptionpublic WxCpBaseResp deleteStudent(@NonNull @NonNull String studentUserId) throws WxErrorException
WxCpSchoolUserServicedeleteStudent 在接口中 WxCpSchoolUserServiceWxErrorExceptionpublic WxCpBaseResp updateStudent(@NonNull @NonNull String studentUserId, String newStudentUserId, String name, List<Integer> departments) throws WxErrorException
WxCpSchoolUserServiceupdateStudent 在接口中 WxCpSchoolUserServiceWxErrorExceptionpublic WxCpBaseResp createParent(@NonNull @NonNull WxCpCreateParentRequest request) throws WxErrorException
WxCpSchoolUserServicecreateParent 在接口中 WxCpSchoolUserServiceWxErrorExceptionpublic WxCpBaseResp updateParent(@NonNull @NonNull WxCpUpdateParentRequest request) throws WxErrorException
WxCpSchoolUserServiceupdateParent 在接口中 WxCpSchoolUserServiceWxErrorExceptionpublic WxCpBaseResp deleteParent(@NonNull @NonNull String userId) throws WxErrorException
WxCpSchoolUserServicedeleteParent 在接口中 WxCpSchoolUserServiceWxErrorExceptionpublic WxCpBaseResp setArchSyncMode(@NonNull @NonNull Integer archSyncMode) throws WxErrorException
WxCpSchoolUserService请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/set_arch_sync_mode?access_token=ACCESS_TOKEN
setArchSyncMode 在接口中 WxCpSchoolUserServicearchSyncMode - 家校通讯录同步模式:1-禁止将标签同步至家校通讯录,2-禁止将家校通讯录同步至标签,3-禁止家校通讯录和标签相互同步WxErrorExceptionCopyright © 2022. All rights reserved.