类 UserApi
java.lang.Object
com.easemob.im.api.UserApi
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createUsers(List<EMCreateUser> emCreateUser) 批量注册用户 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7okhttp3.CallcreateUsersAsync(List<EMCreateUser> emCreateUser, ApiCallback<EMCreateUsersResult> _callback) 批量注册用户 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7okhttp3.CallcreateUsersCall(List<EMCreateUser> emCreateUser, ApiCallback _callback) Build call for createUserscreateUsersWithHttpInfo(List<EMCreateUser> emCreateUser) 批量注册用户 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7deleteUser(String username) 删除用户账号 删除单个用户。okhttp3.CalldeleteUserAsync(String username, ApiCallback<EMDeleteUserResult> _callback) 删除用户账号 (asynchronously) 删除单个用户。okhttp3.CalldeleteUserCall(String username, ApiCallback _callback) Build call for deleteUserdeleteUsers(Integer limit, String cursor) 批量删除用户 删除某个 App 下指定数量的用户账号。okhttp3.CalldeleteUsersAsync(Integer limit, String cursor, ApiCallback<EMDeleteUsersResult> _callback) 批量删除用户 (asynchronously) 删除某个 App 下指定数量的用户账号。okhttp3.CalldeleteUsersCall(Integer limit, String cursor, ApiCallback _callback) Build call for deleteUsersdeleteUsersWithHttpInfo(Integer limit, String cursor) 批量删除用户 删除某个 App 下指定数量的用户账号。deleteUserWithHttpInfo(String username) 删除用户账号 删除单个用户。forceUserLogout(String username) 强制下线 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。okhttp3.CallforceUserLogoutAsync(String username, ApiCallback<EMForceUserLogoutResult> _callback) 强制下线 (asynchronously) 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。okhttp3.CallforceUserLogoutCall(String username, ApiCallback _callback) Build call for forceUserLogoutforceUserLogoutFromSingleDevice(String username, String resourceId) 强制用户从单设备下线 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。okhttp3.CallforceUserLogoutFromSingleDeviceAsync(String username, String resourceId, ApiCallback<EMForceUserLogoutFromSingleDeviceResult> _callback) 强制用户从单设备下线 (asynchronously) 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。okhttp3.CallforceUserLogoutFromSingleDeviceCall(String username, String resourceId, ApiCallback _callback) Build call for forceUserLogoutFromSingleDeviceforceUserLogoutFromSingleDeviceWithHttpInfo(String username, String resourceId) 强制用户从单设备下线 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。forceUserLogoutWithHttpInfo(String username) 强制下线 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。getAllGloballyMutedUsers(Integer pageNum, Integer pageSize) 查询 app 下的所有全局禁言的用户 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。okhttp3.CallgetAllGloballyMutedUsersAsync(Integer pageNum, Integer pageSize, ApiCallback<EMGetAllGloballyMutedUsersResult> _callback) 查询 app 下的所有全局禁言的用户 (asynchronously) 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。okhttp3.CallgetAllGloballyMutedUsersCall(Integer pageNum, Integer pageSize, ApiCallback _callback) Build call for getAllGloballyMutedUsersgetAllGloballyMutedUsersWithHttpInfo(Integer pageNum, Integer pageSize) 查询 app 下的所有全局禁言的用户 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。intgetOfflineMessageStatus(String username, String msgid) 获取指定离线消息的投递状态 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。okhttp3.CallgetOfflineMessageStatusAsync(String username, String msgid, ApiCallback<EMGetOfflineMessageStatusResult> _callback) 获取指定离线消息的投递状态 (asynchronously) 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。okhttp3.CallgetOfflineMessageStatusCall(String username, String msgid, ApiCallback _callback) Build call for getOfflineMessageStatusgetOfflineMessageStatusWithHttpInfo(String username, String msgid) 获取指定离线消息的投递状态 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。获取用户详情 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85okhttp3.CallgetUserAsync(String username, ApiCallback<EMGetUserResult> _callback) 获取用户详情 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85okhttp3.CallgetUserCall(String username, ApiCallback _callback) Build call for getUsergetUserGlobalMute(String username) 查询单个用户 ID 全局禁言 查询单个用户的单聊、群聊和聊天室的全局禁言详情。okhttp3.CallgetUserGlobalMuteAsync(String username, ApiCallback<EMGetUserGlobalMuteResult> _callback) 查询单个用户 ID 全局禁言 (asynchronously) 查询单个用户的单聊、群聊和聊天室的全局禁言详情。okhttp3.CallgetUserGlobalMuteCall(String username, ApiCallback _callback) Build call for getUserGlobalMutegetUserGlobalMuteWithHttpInfo(String username) 查询单个用户 ID 全局禁言 查询单个用户的单聊、群聊和聊天室的全局禁言详情。getUserOfflineMessageCount(String username) 获取用户离线消息数量 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8Fokhttp3.CallgetUserOfflineMessageCountAsync(String username, ApiCallback<EMGetUserOfflineMessageCountResult> _callback) 获取用户离线消息数量 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8Fokhttp3.CallgetUserOfflineMessageCountCall(String username, ApiCallback _callback) Build call for getUserOfflineMessageCountgetUserOfflineMessageCountWithHttpInfo(String username) 获取用户离线消息数量 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8FgetUserOnlineLoginDeviceList(String username) 获取指定账号的在线登录设备列表 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。okhttp3.CallgetUserOnlineLoginDeviceListAsync(String username, ApiCallback<EMGetUserOnlineLoginDeviceListResult> _callback) 获取指定账号的在线登录设备列表 (asynchronously) 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。okhttp3.CallgetUserOnlineLoginDeviceListCall(String username, ApiCallback _callback) Build call for getUserOnlineLoginDeviceList获取指定账号的在线登录设备列表 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。getUserOnlineState(String username) 获取单个用户在线状态 查看单个用户是在线还是离线状态。okhttp3.CallgetUserOnlineStateAsync(String username, ApiCallback<EMGetUserOnlineStateResult> _callback) 获取单个用户在线状态 (asynchronously) 查看单个用户是在线还是离线状态。okhttp3.CallgetUserOnlineStateCall(String username, ApiCallback _callback) Build call for getUserOnlineStategetUserOnlineStateWithHttpInfo(String username) 获取单个用户在线状态 查看单个用户是在线还是离线状态。获取用户列表 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。okhttp3.CallgetUsersAsync(Integer limit, String cursor, ApiCallback<EMGetUsersResult> _callback) 获取用户列表 (asynchronously) 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。okhttp3.CallgetUsersCall(Integer limit, String cursor, ApiCallback _callback) Build call for getUsersgetUsersOnlineState(EMGetUsersOnlineState emGetUsersOnlineState) 批量获取用户在线状态 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。okhttp3.CallgetUsersOnlineStateAsync(EMGetUsersOnlineState emGetUsersOnlineState, ApiCallback<EMGetUsersOnlineStateResult> _callback) 批量获取用户在线状态 (asynchronously) 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。okhttp3.CallgetUsersOnlineStateCall(EMGetUsersOnlineState emGetUsersOnlineState, ApiCallback _callback) Build call for getUsersOnlineStategetUsersOnlineStateWithHttpInfo(EMGetUsersOnlineState emGetUsersOnlineState) 批量获取用户在线状态 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。getUsersWithHttpInfo(Integer limit, String cursor) 获取用户列表 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。getUserWithHttpInfo(String username) 获取用户详情 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85modifyPushNicknames(List<EMModifyPushNickname> emModifyPushNickname) 批量修改用户推送昵称。okhttp3.CallmodifyPushNicknamesAsync(List<EMModifyPushNickname> emModifyPushNickname, ApiCallback<EMModifyPushNicknamesResult> _callback) 批量修改用户推送昵称 (asynchronously)。okhttp3.CallmodifyPushNicknamesCall(List<EMModifyPushNickname> emModifyPushNickname, ApiCallback _callback) Build call for modifyPushNicknamesmodifyPushNicknamesWithHttpInfo(List<EMModifyPushNickname> emModifyPushNickname) 批量修改用户推送昵称。voidmodifyUserPassword(String username, EMModifyUserPassword emModifyUserPassword) 修改用户密码 通过服务端接口修改用户的登录密码,不需要提供原密码。okhttp3.CallmodifyUserPasswordAsync(String username, EMModifyUserPassword emModifyUserPassword, ApiCallback<Void> _callback) 修改用户密码 (asynchronously) 通过服务端接口修改用户的登录密码,不需要提供原密码。okhttp3.CallmodifyUserPasswordCall(String username, EMModifyUserPassword emModifyUserPassword, ApiCallback _callback) Build call for modifyUserPasswordmodifyUserPasswordWithHttpInfo(String username, EMModifyUserPassword emModifyUserPassword) 修改用户密码 通过服务端接口修改用户的登录密码,不需要提供原密码。voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) setUserGlobalMute(EMSetUserGlobalMute emSetUserGlobalMute) 设置用户全局禁言 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。okhttp3.CallsetUserGlobalMuteAsync(EMSetUserGlobalMute emSetUserGlobalMute, ApiCallback<EMSetUserGlobalMuteResult> _callback) 设置用户全局禁言 (asynchronously) 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。okhttp3.CallsetUserGlobalMuteCall(EMSetUserGlobalMute emSetUserGlobalMute, ApiCallback _callback) Build call for setUserGlobalMutesetUserGlobalMuteWithHttpInfo(EMSetUserGlobalMute emSetUserGlobalMute) 设置用户全局禁言 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。voiduserActivate(String username) 账号解禁 被解禁后用户才能恢复登录。okhttp3.CalluserActivateAsync(String username, ApiCallback<Void> _callback) 账号解禁 (asynchronously) 被解禁后用户才能恢复登录。okhttp3.CalluserActivateCall(String username, ApiCallback _callback) Build call for userActivateuserActivateWithHttpInfo(String username) 账号解禁 被解禁后用户才能恢复登录。userDeactivate(String username) 账号封禁 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。okhttp3.CalluserDeactivateAsync(String username, ApiCallback<EMUserDeactivateResult> _callback) 账号封禁 (asynchronously) 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。okhttp3.CalluserDeactivateCall(String username, ApiCallback _callback) Build call for userDeactivateuserDeactivateWithHttpInfo(String username) 账号封禁 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。
-
构造器详细资料
-
UserApi
public UserApi() -
UserApi
-
-
方法详细资料
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createUsersCall
public okhttp3.Call createUsersCall(List<EMCreateUser> emCreateUser, ApiCallback _callback) throws ApiException Build call for createUsers- 参数:
emCreateUser- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
createUsers
批量注册用户 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7- 参数:
emCreateUser- (optional)- 返回:
- EMCreateUsersResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
createUsersWithHttpInfo
public ApiResponse<EMCreateUsersResult> createUsersWithHttpInfo(List<EMCreateUser> emCreateUser) throws ApiException 批量注册用户 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7- 参数:
emCreateUser- (optional)- 返回:
- ApiResponse<EMCreateUsersResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
createUsersAsync
public okhttp3.Call createUsersAsync(List<EMCreateUser> emCreateUser, ApiCallback<EMCreateUsersResult> _callback) throws ApiException 批量注册用户 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7- 参数:
emCreateUser- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
deleteUserCall
Build call for deleteUser- 参数:
username- 用户 ID (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
deleteUser
删除用户账号 删除单个用户。如果该用户是群主或者聊天室所有者,系统会同时删除对应的群组和聊天室。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E5%88%A0%E9%99%A4%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7- 参数:
username- 用户 ID (required)- 返回:
- EMDeleteUserResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
deleteUserWithHttpInfo
删除用户账号 删除单个用户。如果该用户是群主或者聊天室所有者,系统会同时删除对应的群组和聊天室。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E5%88%A0%E9%99%A4%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7- 参数:
username- 用户 ID (required)- 返回:
- ApiResponse<EMDeleteUserResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
deleteUserAsync
public okhttp3.Call deleteUserAsync(String username, ApiCallback<EMDeleteUserResult> _callback) throws ApiException 删除用户账号 (asynchronously) 删除单个用户。如果该用户是群主或者聊天室所有者,系统会同时删除对应的群组和聊天室。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E5%88%A0%E9%99%A4%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7- 参数:
username- 用户 ID (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
deleteUsersCall
public okhttp3.Call deleteUsersCall(Integer limit, String cursor, ApiCallback _callback) throws ApiException Build call for deleteUsers- 参数:
limit- 要删除的用户的数量。取值范围为 [1,100],默认值为 10 (optional)cursor- 开始删除用户的游标位置。第一次批量删除时若不设置 cursor,请求成功后会从最先创建的用户开始删除 limit 指定的用户数量。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已完全删除 app 中的所有用户 (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
deleteUsers
批量删除用户 删除某个 App 下指定数量的用户账号。建议一次删除的用户数量不要超过100。需要注意的是,这里只指定了要删除的用户数量,并未指定要删除的具体用户,你可以在响应中查看删除的用户。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%AF%A6%E6%83%85- 参数:
limit- 要删除的用户的数量。取值范围为 [1,100],默认值为 10 (optional)cursor- 开始删除用户的游标位置。第一次批量删除时若不设置 cursor,请求成功后会从最先创建的用户开始删除 limit 指定的用户数量。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已完全删除 app 中的所有用户 (optional)- 返回:
- EMDeleteUsersResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
deleteUsersWithHttpInfo
public ApiResponse<EMDeleteUsersResult> deleteUsersWithHttpInfo(Integer limit, String cursor) throws ApiException 批量删除用户 删除某个 App 下指定数量的用户账号。建议一次删除的用户数量不要超过100。需要注意的是,这里只指定了要删除的用户数量,并未指定要删除的具体用户,你可以在响应中查看删除的用户。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%AF%A6%E6%83%85- 参数:
limit- 要删除的用户的数量。取值范围为 [1,100],默认值为 10 (optional)cursor- 开始删除用户的游标位置。第一次批量删除时若不设置 cursor,请求成功后会从最先创建的用户开始删除 limit 指定的用户数量。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已完全删除 app 中的所有用户 (optional)- 返回:
- ApiResponse<EMDeleteUsersResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
deleteUsersAsync
public okhttp3.Call deleteUsersAsync(Integer limit, String cursor, ApiCallback<EMDeleteUsersResult> _callback) throws ApiException 批量删除用户 (asynchronously) 删除某个 App 下指定数量的用户账号。建议一次删除的用户数量不要超过100。需要注意的是,这里只指定了要删除的用户数量,并未指定要删除的具体用户,你可以在响应中查看删除的用户。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%AF%A6%E6%83%85- 参数:
limit- 要删除的用户的数量。取值范围为 [1,100],默认值为 10 (optional)cursor- 开始删除用户的游标位置。第一次批量删除时若不设置 cursor,请求成功后会从最先创建的用户开始删除 limit 指定的用户数量。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已完全删除 app 中的所有用户 (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
forceUserLogoutCall
Build call for forceUserLogout- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
forceUserLogout
强制下线 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E5%BC%BA%E5%88%B6%E4%B8%8B%E7%BA%BF- 参数:
username- (required)- 返回:
- EMForceUserLogoutResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
forceUserLogoutWithHttpInfo
public ApiResponse<EMForceUserLogoutResult> forceUserLogoutWithHttpInfo(String username) throws ApiException 强制下线 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E5%BC%BA%E5%88%B6%E4%B8%8B%E7%BA%BF- 参数:
username- (required)- 返回:
- ApiResponse<EMForceUserLogoutResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
forceUserLogoutAsync
public okhttp3.Call forceUserLogoutAsync(String username, ApiCallback<EMForceUserLogoutResult> _callback) throws ApiException 强制下线 (asynchronously) 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E5%BC%BA%E5%88%B6%E4%B8%8B%E7%BA%BF- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getAllGloballyMutedUsersCall
public okhttp3.Call getAllGloballyMutedUsersCall(Integer pageNum, Integer pageSize, ApiCallback _callback) throws ApiException Build call for getAllGloballyMutedUsers- 参数:
pageNum- 请求查询的页码 (optional)pageSize- 请求查询每页显示的禁言用户的数量。取值范围为 [1,50] (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getAllGloballyMutedUsers
public EMGetAllGloballyMutedUsersResult getAllGloballyMutedUsers(Integer pageNum, Integer pageSize) throws ApiException 查询 app 下的所有全局禁言的用户 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%9F%A5%E8%AF%A2-app-%E4%B8%8B%E7%9A%84%E6%89%80%E6%9C%89%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80%E7%9A%84%E7%94%A8%E6%88%B7- 参数:
pageNum- 请求查询的页码 (optional)pageSize- 请求查询每页显示的禁言用户的数量。取值范围为 [1,50] (optional)- 返回:
- EMGetAllGloballyMutedUsersResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getAllGloballyMutedUsersWithHttpInfo
public ApiResponse<EMGetAllGloballyMutedUsersResult> getAllGloballyMutedUsersWithHttpInfo(Integer pageNum, Integer pageSize) throws ApiException 查询 app 下的所有全局禁言的用户 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%9F%A5%E8%AF%A2-app-%E4%B8%8B%E7%9A%84%E6%89%80%E6%9C%89%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80%E7%9A%84%E7%94%A8%E6%88%B7- 参数:
pageNum- 请求查询的页码 (optional)pageSize- 请求查询每页显示的禁言用户的数量。取值范围为 [1,50] (optional)- 返回:
- ApiResponse<EMGetAllGloballyMutedUsersResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getAllGloballyMutedUsersAsync
public okhttp3.Call getAllGloballyMutedUsersAsync(Integer pageNum, Integer pageSize, ApiCallback<EMGetAllGloballyMutedUsersResult> _callback) throws ApiException 查询 app 下的所有全局禁言的用户 (asynchronously) 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%9F%A5%E8%AF%A2-app-%E4%B8%8B%E7%9A%84%E6%89%80%E6%9C%89%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80%E7%9A%84%E7%94%A8%E6%88%B7- 参数:
pageNum- 请求查询的页码 (optional)pageSize- 请求查询每页显示的禁言用户的数量。取值范围为 [1,50] (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getOfflineMessageStatusCall
public okhttp3.Call getOfflineMessageStatusCall(String username, String msgid, ApiCallback _callback) throws ApiException Build call for getOfflineMessageStatus- 参数:
username- (required)msgid- 要查看状态的离线消息 ID (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getOfflineMessageStatus
public EMGetOfflineMessageStatusResult getOfflineMessageStatus(String username, String msgid) throws ApiException 获取指定离线消息的投递状态 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E7%9A%84%E6%8A%95%E9%80%92%E7%8A%B6%E6%80%81- 参数:
username- (required)msgid- 要查看状态的离线消息 ID (required)- 返回:
- EMGetOfflineMessageStatusResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getOfflineMessageStatusWithHttpInfo
public ApiResponse<EMGetOfflineMessageStatusResult> getOfflineMessageStatusWithHttpInfo(String username, String msgid) throws ApiException 获取指定离线消息的投递状态 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E7%9A%84%E6%8A%95%E9%80%92%E7%8A%B6%E6%80%81- 参数:
username- (required)msgid- 要查看状态的离线消息 ID (required)- 返回:
- ApiResponse<EMGetOfflineMessageStatusResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getOfflineMessageStatusAsync
public okhttp3.Call getOfflineMessageStatusAsync(String username, String msgid, ApiCallback<EMGetOfflineMessageStatusResult> _callback) throws ApiException 获取指定离线消息的投递状态 (asynchronously) 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E7%9A%84%E6%8A%95%E9%80%92%E7%8A%B6%E6%80%81- 参数:
username- (required)msgid- 要查看状态的离线消息 ID (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUserCall
Build call for getUser- 参数:
username- 用户 ID (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUser
获取用户详情 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85- 参数:
username- 用户 ID (required)- 返回:
- EMGetUserResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserWithHttpInfo
获取用户详情 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85- 参数:
username- 用户 ID (required)- 返回:
- ApiResponse<EMGetUserResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserAsync
public okhttp3.Call getUserAsync(String username, ApiCallback<EMGetUserResult> _callback) throws ApiException 获取用户详情 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85- 参数:
username- 用户 ID (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUserGlobalMuteCall
public okhttp3.Call getUserGlobalMuteCall(String username, ApiCallback _callback) throws ApiException Build call for getUserGlobalMute- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUserGlobalMute
查询单个用户 ID 全局禁言 查询单个用户的单聊、群聊和聊天室的全局禁言详情。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%9F%A5%E8%AF%A2%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7-id-%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80- 参数:
username- (required)- 返回:
- EMGetUserGlobalMuteResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserGlobalMuteWithHttpInfo
public ApiResponse<EMGetUserGlobalMuteResult> getUserGlobalMuteWithHttpInfo(String username) throws ApiException 查询单个用户 ID 全局禁言 查询单个用户的单聊、群聊和聊天室的全局禁言详情。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%9F%A5%E8%AF%A2%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7-id-%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80- 参数:
username- (required)- 返回:
- ApiResponse<EMGetUserGlobalMuteResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserGlobalMuteAsync
public okhttp3.Call getUserGlobalMuteAsync(String username, ApiCallback<EMGetUserGlobalMuteResult> _callback) throws ApiException 查询单个用户 ID 全局禁言 (asynchronously) 查询单个用户的单聊、群聊和聊天室的全局禁言详情。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%9F%A5%E8%AF%A2%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7-id-%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUserOfflineMessageCountCall
public okhttp3.Call getUserOfflineMessageCountCall(String username, ApiCallback _callback) throws ApiException Build call for getUserOfflineMessageCount- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUserOfflineMessageCount
public EMGetUserOfflineMessageCountResult getUserOfflineMessageCount(String username) throws ApiException 获取用户离线消息数量 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8F- 参数:
username- (required)- 返回:
- EMGetUserOfflineMessageCountResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserOfflineMessageCountWithHttpInfo
public ApiResponse<EMGetUserOfflineMessageCountResult> getUserOfflineMessageCountWithHttpInfo(String username) throws ApiException 获取用户离线消息数量 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8F- 参数:
username- (required)- 返回:
- ApiResponse<EMGetUserOfflineMessageCountResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserOfflineMessageCountAsync
public okhttp3.Call getUserOfflineMessageCountAsync(String username, ApiCallback<EMGetUserOfflineMessageCountResult> _callback) throws ApiException 获取用户离线消息数量 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8F- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUserOnlineLoginDeviceListCall
public okhttp3.Call getUserOnlineLoginDeviceListCall(String username, ApiCallback _callback) throws ApiException Build call for getUserOnlineLoginDeviceList- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUserOnlineLoginDeviceList
public EMGetUserOnlineLoginDeviceListResult getUserOnlineLoginDeviceList(String username) throws ApiException 获取指定账号的在线登录设备列表 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E8%B4%A6%E5%8F%B7%E7%9A%84%E5%9C%A8%E7%BA%BF%E7%99%BB%E5%BD%95%E8%AE%BE%E5%A4%87%E5%88%97%E8%A1%A8- 参数:
username- (required)- 返回:
- EMGetUserOnlineLoginDeviceListResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserOnlineLoginDeviceListWithHttpInfo
public ApiResponse<EMGetUserOnlineLoginDeviceListResult> getUserOnlineLoginDeviceListWithHttpInfo(String username) throws ApiException 获取指定账号的在线登录设备列表 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E8%B4%A6%E5%8F%B7%E7%9A%84%E5%9C%A8%E7%BA%BF%E7%99%BB%E5%BD%95%E8%AE%BE%E5%A4%87%E5%88%97%E8%A1%A8- 参数:
username- (required)- 返回:
- ApiResponse<EMGetUserOnlineLoginDeviceListResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserOnlineLoginDeviceListAsync
public okhttp3.Call getUserOnlineLoginDeviceListAsync(String username, ApiCallback<EMGetUserOnlineLoginDeviceListResult> _callback) throws ApiException 获取指定账号的在线登录设备列表 (asynchronously) 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E8%B4%A6%E5%8F%B7%E7%9A%84%E5%9C%A8%E7%BA%BF%E7%99%BB%E5%BD%95%E8%AE%BE%E5%A4%87%E5%88%97%E8%A1%A8- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUserOnlineStateCall
public okhttp3.Call getUserOnlineStateCall(String username, ApiCallback _callback) throws ApiException Build call for getUserOnlineState- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUserOnlineState
获取单个用户在线状态 查看单个用户是在线还是离线状态。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81- 参数:
username- (required)- 返回:
- EMGetUserOnlineStateResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserOnlineStateWithHttpInfo
public ApiResponse<EMGetUserOnlineStateResult> getUserOnlineStateWithHttpInfo(String username) throws ApiException 获取单个用户在线状态 查看单个用户是在线还是离线状态。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81- 参数:
username- (required)- 返回:
- ApiResponse<EMGetUserOnlineStateResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUserOnlineStateAsync
public okhttp3.Call getUserOnlineStateAsync(String username, ApiCallback<EMGetUserOnlineStateResult> _callback) throws ApiException 获取单个用户在线状态 (asynchronously) 查看单个用户是在线还是离线状态。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUsersCall
public okhttp3.Call getUsersCall(Integer limit, String cursor, ApiCallback _callback) throws ApiException Build call for getUsers- 参数:
limit- 请求查询用户的数量。取值范围为 [1,100],默认值为 10。若实际用户数量超过 100,返回 100 个用户 (optional)cursor- 开始获取数据的游标位置,用于分页显示用户列表。第一次发起批量查询用户请求时若不设置 cursor,请求成功后会获得第一页用户列表。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已查询到 app 中所有用户 (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUsers
获取用户列表 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%AF%A6%E6%83%85- 参数:
limit- 请求查询用户的数量。取值范围为 [1,100],默认值为 10。若实际用户数量超过 100,返回 100 个用户 (optional)cursor- 开始获取数据的游标位置,用于分页显示用户列表。第一次发起批量查询用户请求时若不设置 cursor,请求成功后会获得第一页用户列表。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已查询到 app 中所有用户 (optional)- 返回:
- EMGetUsersResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUsersWithHttpInfo
public ApiResponse<EMGetUsersResult> getUsersWithHttpInfo(Integer limit, String cursor) throws ApiException 获取用户列表 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%AF%A6%E6%83%85- 参数:
limit- 请求查询用户的数量。取值范围为 [1,100],默认值为 10。若实际用户数量超过 100,返回 100 个用户 (optional)cursor- 开始获取数据的游标位置,用于分页显示用户列表。第一次发起批量查询用户请求时若不设置 cursor,请求成功后会获得第一页用户列表。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已查询到 app 中所有用户 (optional)- 返回:
- ApiResponse<EMGetUsersResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUsersAsync
public okhttp3.Call getUsersAsync(Integer limit, String cursor, ApiCallback<EMGetUsersResult> _callback) throws ApiException 获取用户列表 (asynchronously) 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E8%AF%A6%E6%83%85- 参数:
limit- 请求查询用户的数量。取值范围为 [1,100],默认值为 10。若实际用户数量超过 100,返回 100 个用户 (optional)cursor- 开始获取数据的游标位置,用于分页显示用户列表。第一次发起批量查询用户请求时若不设置 cursor,请求成功后会获得第一页用户列表。从响应 body 中获取 cursor,并在下一次请求的 URL 中传入该 cursor,直到响应 body 中不再有 cursor 字段,则表示已查询到 app 中所有用户 (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
getUsersOnlineStateCall
public okhttp3.Call getUsersOnlineStateCall(EMGetUsersOnlineState emGetUsersOnlineState, ApiCallback _callback) throws ApiException Build call for getUsersOnlineState- 参数:
emGetUsersOnlineState- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
getUsersOnlineState
public EMGetUsersOnlineStateResult getUsersOnlineState(EMGetUsersOnlineState emGetUsersOnlineState) throws ApiException 批量获取用户在线状态 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81- 参数:
emGetUsersOnlineState- (optional)- 返回:
- EMGetUsersOnlineStateResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUsersOnlineStateWithHttpInfo
public ApiResponse<EMGetUsersOnlineStateResult> getUsersOnlineStateWithHttpInfo(EMGetUsersOnlineState emGetUsersOnlineState) throws ApiException 批量获取用户在线状态 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81- 参数:
emGetUsersOnlineState- (optional)- 返回:
- ApiResponse<EMGetUsersOnlineStateResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
getUsersOnlineStateAsync
public okhttp3.Call getUsersOnlineStateAsync(EMGetUsersOnlineState emGetUsersOnlineState, ApiCallback<EMGetUsersOnlineStateResult> _callback) throws ApiException 批量获取用户在线状态 (asynchronously) 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E5%9C%A8%E7%BA%BF%E7%8A%B6%E6%80%81- 参数:
emGetUsersOnlineState- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
modifyUserPasswordCall
public okhttp3.Call modifyUserPasswordCall(String username, EMModifyUserPassword emModifyUserPassword, ApiCallback _callback) throws ApiException Build call for modifyUserPassword- 参数:
username- 用户 ID (required)emModifyUserPassword- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
modifyUserPassword
public void modifyUserPassword(String username, EMModifyUserPassword emModifyUserPassword) throws ApiException 修改用户密码 通过服务端接口修改用户的登录密码,不需要提供原密码。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E4%BF%AE%E6%94%B9%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81- 参数:
username- 用户 ID (required)emModifyUserPassword- (optional)- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
modifyUserPasswordWithHttpInfo
public ApiResponse<Void> modifyUserPasswordWithHttpInfo(String username, EMModifyUserPassword emModifyUserPassword) throws ApiException 修改用户密码 通过服务端接口修改用户的登录密码,不需要提供原密码。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E4%BF%AE%E6%94%B9%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81- 参数:
username- 用户 ID (required)emModifyUserPassword- (optional)- 返回:
- ApiResponse<Void>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
modifyUserPasswordAsync
public okhttp3.Call modifyUserPasswordAsync(String username, EMModifyUserPassword emModifyUserPassword, ApiCallback<Void> _callback) throws ApiException 修改用户密码 (asynchronously) 通过服务端接口修改用户的登录密码,不需要提供原密码。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E4%BF%AE%E6%94%B9%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81- 参数:
username- 用户 ID (required)emModifyUserPassword- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
setUserGlobalMuteCall
public okhttp3.Call setUserGlobalMuteCall(EMSetUserGlobalMute emSetUserGlobalMute, ApiCallback _callback) throws ApiException Build call for setUserGlobalMute- 参数:
emSetUserGlobalMute- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
setUserGlobalMute
public EMSetUserGlobalMuteResult setUserGlobalMute(EMSetUserGlobalMute emSetUserGlobalMute) throws ApiException 设置用户全局禁言 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。设置成功后,该用户将无法在对应的单聊、群组或聊天室中发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E7%94%A8%E6%88%B7%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80- 参数:
emSetUserGlobalMute- (optional)- 返回:
- EMSetUserGlobalMuteResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setUserGlobalMuteWithHttpInfo
public ApiResponse<EMSetUserGlobalMuteResult> setUserGlobalMuteWithHttpInfo(EMSetUserGlobalMute emSetUserGlobalMute) throws ApiException 设置用户全局禁言 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。设置成功后,该用户将无法在对应的单聊、群组或聊天室中发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E7%94%A8%E6%88%B7%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80- 参数:
emSetUserGlobalMute- (optional)- 返回:
- ApiResponse<EMSetUserGlobalMuteResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
setUserGlobalMuteAsync
public okhttp3.Call setUserGlobalMuteAsync(EMSetUserGlobalMute emSetUserGlobalMute, ApiCallback<EMSetUserGlobalMuteResult> _callback) throws ApiException 设置用户全局禁言 (asynchronously) 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。设置成功后,该用户将无法在对应的单聊、群组或聊天室中发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E7%94%A8%E6%88%B7%E5%85%A8%E5%B1%80%E7%A6%81%E8%A8%80- 参数:
emSetUserGlobalMute- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
userActivateCall
Build call for userActivate- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
userActivate
账号解禁 被解禁后用户才能恢复登录。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%B4%A6%E5%8F%B7%E8%A7%A3%E7%A6%81- 参数:
username- (required)- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
userActivateWithHttpInfo
账号解禁 被解禁后用户才能恢复登录。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%B4%A6%E5%8F%B7%E8%A7%A3%E7%A6%81- 参数:
username- (required)- 返回:
- ApiResponse<Void>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
userActivateAsync
public okhttp3.Call userActivateAsync(String username, ApiCallback<Void> _callback) throws ApiException 账号解禁 (asynchronously) 被解禁后用户才能恢复登录。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%B4%A6%E5%8F%B7%E8%A7%A3%E7%A6%81- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
userDeactivateCall
Build call for userDeactivate- 参数:
username- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
userDeactivate
账号封禁 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。常用在对异常用户的即时处理场景使用。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%B4%A6%E5%8F%B7%E5%B0%81%E7%A6%81- 参数:
username- (required)- 返回:
- EMUserDeactivateResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
userDeactivateWithHttpInfo
public ApiResponse<EMUserDeactivateResult> userDeactivateWithHttpInfo(String username) throws ApiException 账号封禁 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。常用在对异常用户的即时处理场景使用。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%B4%A6%E5%8F%B7%E5%B0%81%E7%A6%81- 参数:
username- (required)- 返回:
- ApiResponse<EMUserDeactivateResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
userDeactivateAsync
public okhttp3.Call userDeactivateAsync(String username, ApiCallback<EMUserDeactivateResult> _callback) throws ApiException 账号封禁 (asynchronously) 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。常用在对异常用户的即时处理场景使用。文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%B4%A6%E5%8F%B7%E5%B0%81%E7%A6%81- 参数:
username- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
modifyPushNicknamesCall
public okhttp3.Call modifyPushNicknamesCall(List<EMModifyPushNickname> emModifyPushNickname, ApiCallback _callback) throws ApiException Build call for modifyPushNicknames- 参数:
emModifyPushNickname- (optional)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
modifyPushNicknames
public EMModifyPushNicknamesResult modifyPushNicknames(List<EMModifyPushNickname> emModifyPushNickname) throws ApiException 批量修改用户推送昵称。文档介绍:https://doc.easemob.com/document/server-side/push.html#%E6%89%B9%E9%87%8F%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%97%B6%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%B5%E7%A7%B0- 参数:
emModifyPushNickname- (optional)- 返回:
- EMModifyPushNicknamesResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
modifyPushNicknamesWithHttpInfo
public ApiResponse<EMModifyPushNicknamesResult> modifyPushNicknamesWithHttpInfo(List<EMModifyPushNickname> emModifyPushNickname) throws ApiException 批量修改用户推送昵称。 文档介绍:https://doc.easemob.com/document/server-side/push.html#%E6%89%B9%E9%87%8F%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%97%B6%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%B5%E7%A7%B0- 参数:
emModifyPushNickname- (optional)- 返回:
- ApiResponse<EMModifyPushNicknamesResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
modifyPushNicknamesAsync
public okhttp3.Call modifyPushNicknamesAsync(List<EMModifyPushNickname> emModifyPushNickname, ApiCallback<EMModifyPushNicknamesResult> _callback) throws ApiException 批量修改用户推送昵称 (asynchronously)。 文档介绍:https://doc.easemob.com/document/server-side/push.html#%E6%89%B9%E9%87%8F%E8%AE%BE%E7%BD%AE%E7%A6%BB%E7%BA%BF%E6%8E%A8%E9%80%81%E6%97%B6%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%B5%E7%A7%B0- 参数:
emModifyPushNickname- (optional)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-
forceUserLogoutFromSingleDeviceCall
public okhttp3.Call forceUserLogoutFromSingleDeviceCall(String username, String resourceId, ApiCallback _callback) throws ApiException Build call for forceUserLogoutFromSingleDevice- 参数:
username- (required)resourceId- (required)_callback- Callback for upload/download progress- 返回:
- Call to execute
- 抛出:
ApiException- If fail to serialize the request body object http.response.details
-
forceUserLogoutFromSingleDevice
public EMForceUserLogoutFromSingleDeviceResult forceUserLogoutFromSingleDevice(String username, String resourceId) throws ApiException 强制用户从单设备下线 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。若强制用户从所有设备下线,可以调用强制用户下线接口。文档介绍:https://doc.easemob.com/document/server-side/account_system.html#%E5%BC%BA%E5%88%B6%E7%94%A8%E6%88%B7%E4%BB%8E%E5%8D%95%E8%AE%BE%E5%A4%87%E4%B8%8B%E7%BA%BF- 参数:
username- (required)resourceId- (required)- 返回:
- EMForceUserLogoutFromSingleDeviceResult
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
forceUserLogoutFromSingleDeviceWithHttpInfo
public ApiResponse<EMForceUserLogoutFromSingleDeviceResult> forceUserLogoutFromSingleDeviceWithHttpInfo(String username, String resourceId) throws ApiException 强制用户从单设备下线 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。若强制用户从所有设备下线,可以调用强制用户下线接口。文档介绍:https://doc.easemob.com/document/server-side/account_system.html#%E5%BC%BA%E5%88%B6%E7%94%A8%E6%88%B7%E4%BB%8E%E5%8D%95%E8%AE%BE%E5%A4%87%E4%B8%8B%E7%BA%BF- 参数:
username- (required)resourceId- (required)- 返回:
- ApiResponse<EMForceUserLogoutFromSingleDeviceResult>
- 抛出:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
-
forceUserLogoutFromSingleDeviceAsync
public okhttp3.Call forceUserLogoutFromSingleDeviceAsync(String username, String resourceId, ApiCallback<EMForceUserLogoutFromSingleDeviceResult> _callback) throws ApiException 强制用户从单设备下线 (asynchronously) 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。若强制用户从所有设备下线,可以调用强制用户下线接口。文档介绍:https://doc.easemob.com/document/server-side/account_system.html#%E5%BC%BA%E5%88%B6%E7%94%A8%E6%88%B7%E4%BB%8E%E5%8D%95%E8%AE%BE%E5%A4%87%E4%B8%8B%E7%BA%BF- 参数:
username- (required)resourceId- (required)_callback- The callback to be executed when the API call finishes- 返回:
- The request call
- 抛出:
ApiException- If fail to process the API call, e.g. serializing the request body object http.response.details
-