public interface WxCpSchoolUserService
| 限定符和类型 | 方法和说明 |
|---|---|
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?
|
WxCpBaseResp createStudent(@NonNull @NonNull String studentUserId, @NonNull @NonNull String name, @NonNull @NonNull List<Integer> departments) throws WxErrorException
studentUserId - name - departments - WxErrorExceptionWxCpBaseResp deleteStudent(@NonNull @NonNull String studentUserId) throws WxErrorException
studentUserId - WxErrorExceptionWxCpBaseResp updateStudent(@NonNull @NonNull String studentUserId, String newStudentUserId, String name, List<Integer> departments) throws WxErrorException
studentUserId - newStudentUserId - name - departments - WxErrorExceptionWxCpBaseResp createParent(@NonNull @NonNull WxCpCreateParentRequest request) throws WxErrorException
request - WxErrorExceptionWxCpBaseResp updateParent(@NonNull @NonNull WxCpUpdateParentRequest request) throws WxErrorException
request - WxErrorExceptionWxCpBaseResp deleteParent(@NonNull @NonNull String userId) throws WxErrorException
userId - WxErrorExceptionWxCpBaseResp 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-禁止家校通讯录和标签相互同步WxErrorExceptionCopyright © 2022. All rights reserved.