类 MessageApi

java.lang.Object
com.easemob.im.api.MessageApi

public class MessageApi extends Object
  • 构造器详细资料

    • MessageApi

      public MessageApi()
    • MessageApi

      public MessageApi(ApiClient apiClient)
  • 方法详细资料

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • importChatGroupMessageCall

      public okhttp3.Call importChatGroupMessageCall(EMImportChatGroupMessage emImportChatGroupMessage, ApiCallback _callback) throws ApiException
      Build call for importChatGroupMessage
      参数:
      emImportChatGroupMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • importChatGroupMessage

      public EMImportChatGroupMessageResult importChatGroupMessage(EMImportChatGroupMessage emImportChatGroupMessage) throws ApiException
      导入群聊消息 你可以在数据迁移时导入群聊消息。每次调用该接口只能导入一条消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_import.html#%E5%AF%BC%E5%85%A5%E7%BE%A4%E8%81%8A%E6%B6%88%E6%81%AF
      参数:
      emImportChatGroupMessage - (optional)
      返回:
      EMImportChatGroupMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • importChatGroupMessageWithHttpInfo

      public ApiResponse<EMImportChatGroupMessageResult> importChatGroupMessageWithHttpInfo(EMImportChatGroupMessage emImportChatGroupMessage) throws ApiException
      导入群聊消息 你可以在数据迁移时导入群聊消息。每次调用该接口只能导入一条消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_import.html#%E5%AF%BC%E5%85%A5%E7%BE%A4%E8%81%8A%E6%B6%88%E6%81%AF
      参数:
      emImportChatGroupMessage - (optional)
      返回:
      ApiResponse<EMImportChatGroupMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • importChatGroupMessageAsync

      public okhttp3.Call importChatGroupMessageAsync(EMImportChatGroupMessage emImportChatGroupMessage, ApiCallback<EMImportChatGroupMessageResult> _callback) throws ApiException
      导入群聊消息 (asynchronously) 你可以在数据迁移时导入群聊消息。每次调用该接口只能导入一条消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_import.html#%E5%AF%BC%E5%85%A5%E7%BE%A4%E8%81%8A%E6%B6%88%E6%81%AF
      参数:
      emImportChatGroupMessage - (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
    • importChatUserMessageCall

      public okhttp3.Call importChatUserMessageCall(EMImportChatUserMessage emImportChatUserMessage, ApiCallback _callback) throws ApiException
      Build call for importChatUserMessage
      参数:
      emImportChatUserMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • importChatUserMessage

      public EMImportChatUserMessageResult importChatUserMessage(EMImportChatUserMessage emImportChatUserMessage) throws ApiException
      导入单聊消息 你可以在数据迁移时导入单聊消息。每次调用该接口只能导入一条消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_import.html#%E5%AF%BC%E5%85%A5%E5%8D%95%E8%81%8A%E6%B6%88%E6%81%AF
      参数:
      emImportChatUserMessage - (optional)
      返回:
      EMImportChatUserMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • importChatUserMessageWithHttpInfo

      public ApiResponse<EMImportChatUserMessageResult> importChatUserMessageWithHttpInfo(EMImportChatUserMessage emImportChatUserMessage) throws ApiException
      导入单聊消息 你可以在数据迁移时导入单聊消息。每次调用该接口只能导入一条消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_import.html#%E5%AF%BC%E5%85%A5%E5%8D%95%E8%81%8A%E6%B6%88%E6%81%AF
      参数:
      emImportChatUserMessage - (optional)
      返回:
      ApiResponse<EMImportChatUserMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • importChatUserMessageAsync

      public okhttp3.Call importChatUserMessageAsync(EMImportChatUserMessage emImportChatUserMessage, ApiCallback<EMImportChatUserMessageResult> _callback) throws ApiException
      导入单聊消息 (asynchronously) 你可以在数据迁移时导入单聊消息。每次调用该接口只能导入一条消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_import.html#%E5%AF%BC%E5%85%A5%E5%8D%95%E8%81%8A%E6%B6%88%E6%81%AF
      参数:
      emImportChatUserMessage - (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
    • oneWayDeleteConversationCall

      public okhttp3.Call oneWayDeleteConversationCall(String username, EMOneWayDeleteConversation emOneWayDeleteConversation, ApiCallback _callback) throws ApiException
      Build call for oneWayDeleteConversation
      参数:
      username - 要删除会话的用户的唯一标识符,即用户 ID (required)
      emOneWayDeleteConversation - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • oneWayClearUserRoamingMessagesByMsgIdCall

      public okhttp3.Call oneWayClearUserRoamingMessagesByMsgIdCall(String username, String userId, String msgIdList, Boolean isNotify, ApiCallback _callback) throws ApiException
      Build call for oneWayClearUserRoamingMessagesByMsgId
      参数:
      username - 用户 ID (required)
      userId - 单聊会话中的对端用户 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • oneWayClearUserRoamingMessagesByMsgId

      public EMOneWayClearUserRoamingMessagesByMsgIdResult oneWayClearUserRoamingMessagesByMsgId(String username, String userId, String msgIdList, Boolean isNotify) throws ApiException
      根据消息 ID 单向删除单聊漫游消息 根据消息 ID 单向删除指定用户的单聊会话的一条或多条漫游消息。调用该接口后,该用户的指定漫游消息会从服务器和本地删除,该用户无法从环信服务端拉取到这些消息。若该会话的全部漫游消息均被删除了,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_delete.html#%E6%A0%B9%E6%8D%AE%E6%B6%88%E6%81%AF-id-%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E5%8D%95%E8%81%8A%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      userId - 单聊会话中的对端用户 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (optional)
      返回:
      EMOneWayClearUserRoamingMessagesByMsgIdResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearUserRoamingMessagesByMsgIdWithHttpInfo

      public ApiResponse<EMOneWayClearUserRoamingMessagesByMsgIdResult> oneWayClearUserRoamingMessagesByMsgIdWithHttpInfo(String username, String userId, String msgIdList, Boolean isNotify) throws ApiException
      根据消息 ID 单向删除单聊漫游消息 根据消息 ID 单向删除指定用户的单聊会话的一条或多条漫游消息。调用该接口后,该用户的指定漫游消息会从服务器和本地删除,该用户无法从环信服务端拉取到这些消息。若该会话的全部漫游消息均被删除了,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_delete.html#%E6%A0%B9%E6%8D%AE%E6%B6%88%E6%81%AF-id-%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E5%8D%95%E8%81%8A%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      userId - 单聊会话中的对端用户 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (optional)
      返回:
      ApiResponse<EMOneWayClearUserRoamingMessagesByMsgIdResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearUserRoamingMessagesByMsgIdAsync

      public okhttp3.Call oneWayClearUserRoamingMessagesByMsgIdAsync(String username, String userId, String msgIdList, Boolean isNotify, ApiCallback<EMOneWayClearUserRoamingMessagesByMsgIdResult> _callback) throws ApiException
      根据消息 ID 单向删除单聊漫游消息 (asynchronously) 根据消息 ID 单向删除指定用户的单聊会话的一条或多条漫游消息。调用该接口后,该用户的指定漫游消息会从服务器和本地删除,该用户无法从环信服务端拉取到这些消息。若该会话的全部漫游消息均被删除了,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_delete.html#%E6%A0%B9%E6%8D%AE%E6%B6%88%E6%81%AF-id-%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E5%8D%95%E8%81%8A%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      userId - 单聊会话中的对端用户 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (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
    • oneWayClearGroupRoamingMessagesByMsgIdCall

      public okhttp3.Call oneWayClearGroupRoamingMessagesByMsgIdCall(String username, String groupId, String msgIdList, Boolean isNotify, ApiCallback _callback) throws ApiException
      Build call for oneWayClearGroupRoamingMessagesByMsgId
      参数:
      username - 用户 ID (required)
      groupId - 群组 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • oneWayClearGroupRoamingMessagesByMsgId

      public EMOneWayClearGroupRoamingMessagesByMsgIdResult oneWayClearGroupRoamingMessagesByMsgId(String username, String groupId, String msgIdList, Boolean isNotify) throws ApiException
      根据消息 ID 单向删除群聊漫游消息 根据消息 ID 单向删除指定用户的某个群聊会话的一条或多条漫游消息。调用该接口后,该用户的指定漫游消息会从服务器和本地删除,该用户无法从环信服务端拉取到这些消息。若删除了该群聊会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取这些漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_delete.html#%E6%A0%B9%E6%8D%AE%E6%B6%88%E6%81%AF-id-%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E7%BE%A4%E8%81%8A%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      groupId - 群组 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (optional)
      返回:
      EMOneWayClearGroupRoamingMessagesByMsgIdResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearGroupRoamingMessagesByMsgIdWithHttpInfo

      public ApiResponse<EMOneWayClearGroupRoamingMessagesByMsgIdResult> oneWayClearGroupRoamingMessagesByMsgIdWithHttpInfo(String username, String groupId, String msgIdList, Boolean isNotify) throws ApiException
      根据消息 ID 单向删除群聊漫游消息 根据消息 ID 单向删除指定用户的某个群聊会话的一条或多条漫游消息。调用该接口后,该用户的指定漫游消息会从服务器和本地删除,该用户无法从环信服务端拉取到这些消息。若删除了该群聊会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取这些漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_delete.html#%E6%A0%B9%E6%8D%AE%E6%B6%88%E6%81%AF-id-%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E7%BE%A4%E8%81%8A%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      groupId - 群组 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (optional)
      返回:
      ApiResponse<EMOneWayClearGroupRoamingMessagesByMsgIdResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearGroupRoamingMessagesByMsgIdAsync

      public okhttp3.Call oneWayClearGroupRoamingMessagesByMsgIdAsync(String username, String groupId, String msgIdList, Boolean isNotify, ApiCallback<EMOneWayClearGroupRoamingMessagesByMsgIdResult> _callback) throws ApiException
      根据消息 ID 单向删除群聊漫游消息 (asynchronously) 根据消息 ID 单向删除指定用户的某个群聊会话的一条或多条漫游消息。调用该接口后,该用户的指定漫游消息会从服务器和本地删除,该用户无法从环信服务端拉取到这些消息。若删除了该群聊会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取这些漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_delete.html#%E6%A0%B9%E6%8D%AE%E6%B6%88%E6%81%AF-id-%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E7%BE%A4%E8%81%8A%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      groupId - 群组 ID (required)
      msgIdList - 要删除的消息的消息 ID。每次最多可传入 50 个消息 ID,消息 ID 之间以英文逗号分隔,例如 message ID 1,message ID 2 (required)
      isNotify - 消息删除后,是否同步到消息所属用户的所有在线设备。- (默认)true:是 - false:否 (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
    • oneWayDeleteConversation

      public EMOneWayDeleteConversationResult oneWayDeleteConversation(String username, EMOneWayDeleteConversation emOneWayDeleteConversation) throws ApiException
      单向删除会话 该方法使聊天用户能够从服务器中删除会话。删除会话后,该用户将从服务器获取不到该会话。该会话的其他参与聊天用户仍然可以从服务器获取会话内容。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_recall.html#%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E4%BC%9A%E8%AF%9D
      参数:
      username - 要删除会话的用户的唯一标识符,即用户 ID (required)
      emOneWayDeleteConversation - (optional)
      返回:
      EMOneWayDeleteConversationResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayDeleteConversationWithHttpInfo

      public ApiResponse<EMOneWayDeleteConversationResult> oneWayDeleteConversationWithHttpInfo(String username, EMOneWayDeleteConversation emOneWayDeleteConversation) throws ApiException
      单向删除会话 该方法使聊天用户能够从服务器中删除会话。删除会话后,该用户将从服务器获取不到该会话。该会话的其他参与聊天用户仍然可以从服务器获取会话内容。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_recall.html#%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E4%BC%9A%E8%AF%9D
      参数:
      username - 要删除会话的用户的唯一标识符,即用户 ID (required)
      emOneWayDeleteConversation - (optional)
      返回:
      ApiResponse<EMOneWayDeleteConversationResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayDeleteConversationAsync

      public okhttp3.Call oneWayDeleteConversationAsync(String username, EMOneWayDeleteConversation emOneWayDeleteConversation, ApiCallback<EMOneWayDeleteConversationResult> _callback) throws ApiException
      单向删除会话 (asynchronously) 该方法使聊天用户能够从服务器中删除会话。删除会话后,该用户将从服务器获取不到该会话。该会话的其他参与聊天用户仍然可以从服务器获取会话内容。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_recall.html#%E5%8D%95%E5%90%91%E5%88%A0%E9%99%A4%E4%BC%9A%E8%AF%9D
      参数:
      username - 要删除会话的用户的唯一标识符,即用户 ID (required)
      emOneWayDeleteConversation - (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
    • recallMessageCall

      public okhttp3.Call recallMessageCall(EMRecallMessage emRecallMessage, ApiCallback _callback) throws ApiException
      Build call for recallMessage
      参数:
      emRecallMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • recallMessage

      public EMRecallMessageResult recallMessage(EMRecallMessage emRecallMessage) throws ApiException
      撤回消息 发送方可以撤回一条发送成功的消息。默认情况下,发送方可撤回发出 2 分钟内的消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_recall.html#%E6%92%A4%E5%9B%9E%E6%B6%88%E6%81%AF
      参数:
      emRecallMessage - (optional)
      返回:
      EMRecallMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • recallMessageWithHttpInfo

      public ApiResponse<EMRecallMessageResult> recallMessageWithHttpInfo(EMRecallMessage emRecallMessage) throws ApiException
      撤回消息 发送方可以撤回一条发送成功的消息。默认情况下,发送方可撤回发出 2 分钟内的消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_recall.html#%E6%92%A4%E5%9B%9E%E6%B6%88%E6%81%AF
      参数:
      emRecallMessage - (optional)
      返回:
      ApiResponse<EMRecallMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • recallMessageAsync

      public okhttp3.Call recallMessageAsync(EMRecallMessage emRecallMessage, ApiCallback<EMRecallMessageResult> _callback) throws ApiException
      撤回消息 (asynchronously) 发送方可以撤回一条发送成功的消息。默认情况下,发送方可撤回发出 2 分钟内的消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_recall.html#%E6%92%A4%E5%9B%9E%E6%B6%88%E6%81%AF
      参数:
      emRecallMessage - (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
    • sendMessagesToGroupCall

      public okhttp3.Call sendMessagesToGroupCall(EMCreateMessage emCreateMessage, ApiCallback _callback) throws ApiException
      Build call for sendMessagesToGroup
      参数:
      emCreateMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • sendMessagesToGroup

      public EMSendMessageResult sendMessagesToGroup(EMCreateMessage emCreateMessage) throws ApiException
      发送群聊消息 向群组发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_group.html
      参数:
      emCreateMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendMessagesToGroupWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendMessagesToGroupWithHttpInfo(EMCreateMessage emCreateMessage) throws ApiException
      发送群聊消息 向群组发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_group.html
      参数:
      emCreateMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendMessagesToGroupAsync

      public okhttp3.Call sendMessagesToGroupAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      发送群聊消息 (asynchronously) 向群组发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_group.html
      参数:
      emCreateMessage - (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
    • sendMessagesToRoomCall

      public okhttp3.Call sendMessagesToRoomCall(EMCreateMessage emCreateMessage, ApiCallback _callback) throws ApiException
      Build call for sendMessagesToRoom
      参数:
      emCreateMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • sendMessagesToRoom

      public EMSendMessageResult sendMessagesToRoom(EMCreateMessage emCreateMessage) throws ApiException
      发送聊天室消息 向聊天室发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_chatroom.html
      参数:
      emCreateMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendMessagesToRoomWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendMessagesToRoomWithHttpInfo(EMCreateMessage emCreateMessage) throws ApiException
      发送聊天室消息 向聊天室发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_chatroom.html
      参数:
      emCreateMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendMessagesToRoomAsync

      public okhttp3.Call sendMessagesToRoomAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      发送聊天室消息 (asynchronously) 向聊天室发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_chatroom.html
      参数:
      emCreateMessage - (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
    • sendMessagesToUserCall

      public okhttp3.Call sendMessagesToUserCall(EMCreateMessage emCreateMessage, ApiCallback _callback) throws ApiException
      Build call for sendMessagesToUser
      参数:
      emCreateMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • sendMessagesToUser

      public EMSendMessageResult sendMessagesToUser(EMCreateMessage emCreateMessage) throws ApiException
      发送单聊消息 给用户发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_single.html
      参数:
      emCreateMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendMessagesToUserWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendMessagesToUserWithHttpInfo(EMCreateMessage emCreateMessage) throws ApiException
      发送单聊消息 给用户发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_single.html
      参数:
      emCreateMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendMessagesToUserAsync

      public okhttp3.Call sendMessagesToUserAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      发送单聊消息 (asynchronously) 给用户发送消息。文档介绍:https://docs-im-beta.easemob.com/document/server-side/message_single.html
      参数:
      emCreateMessage - (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
    • modifyTextOrCustomizeMessageCall

      public okhttp3.Call modifyTextOrCustomizeMessageCall(String msgId, EMModifyTextOrCustomizeMessage emModifyTextOrCustomizeMessage, ApiCallback _callback) throws ApiException
      Build call for modifyTextOrCustomizeMessage
      参数:
      msgId - 消息 ID (required)
      emModifyTextOrCustomizeMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • modifyTextOrCustomizeMessage

      public EMModifyTextOrCustomizeMessageResult modifyTextOrCustomizeMessage(String msgId, EMModifyTextOrCustomizeMessage emModifyTextOrCustomizeMessage) throws ApiException
      修改文本或自定义消息 修改发送成功的文本消息或自定义消息。若使用该功能,需联系环信商务开通。文档介绍:https://doc.easemob.com/document/server-side/message_modify_text_custom.html
      参数:
      msgId - 消息 ID (required)
      emModifyTextOrCustomizeMessage - (optional)
      返回:
      EMModifyTextOrCustomizeMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • modifyTextOrCustomizeMessageWithHttpInfo

      public ApiResponse<EMModifyTextOrCustomizeMessageResult> modifyTextOrCustomizeMessageWithHttpInfo(String msgId, EMModifyTextOrCustomizeMessage emModifyTextOrCustomizeMessage) throws ApiException
      修改文本或自定义消息 修改发送成功的文本消息或自定义消息。若使用该功能,需联系环信商务开通。文档介绍:https://doc.easemob.com/document/server-side/message_modify_text_custom.html
      参数:
      msgId - 消息 ID (required)
      emModifyTextOrCustomizeMessage - (optional)
      返回:
      ApiResponse<EMModifyTextOrCustomizeMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • modifyTextOrCustomizeMessageAsync

      public okhttp3.Call modifyTextOrCustomizeMessageAsync(String msgId, EMModifyTextOrCustomizeMessage emModifyTextOrCustomizeMessage, ApiCallback<EMModifyTextOrCustomizeMessageResult> _callback) throws ApiException
      修改文本或自定义消息 (asynchronously) 修改发送成功的文本消息或自定义消息。若使用该功能,需联系环信商务开通。文档介绍:https://doc.easemob.com/document/server-side/message_modify_text_custom.html
      参数:
      msgId - 消息 ID (required)
      emModifyTextOrCustomizeMessage - (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
    • oneWayClearGroupOrRoomRoamingMessagesWithinPeriodCall

      public okhttp3.Call oneWayClearGroupOrRoomRoamingMessagesWithinPeriodCall(String username, String groupId, BigDecimal delTime, ApiCallback _callback) throws ApiException
      Build call for oneWayClearGroupOrRoomRoamingMessagesWithinPeriod
      参数:
      username - 用户 ID (required)
      groupId - 要清空哪个群组或聊天室的漫游消息。你可以传入群组 ID 或聊天室 ID (required)
      delTime - 要清空哪个时间点及之前的群组或聊天室的漫游消息。该时间为 Unix 时间戳,单位为毫秒 (required)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • oneWayClearGroupOrRoomRoamingMessagesWithinPeriod

      public EMOneWayClearGroupOrRoomRoamingMessagesWithinPeriodResult oneWayClearGroupOrRoomRoamingMessagesWithinPeriod(String username, String groupId, BigDecimal delTime) throws ApiException
      单向清空指定群组或聊天室会话一段时间内的漫游消息 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。若清除了该会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E7%BE%A4%E7%BB%84%E6%88%96%E8%81%8A%E5%A4%A9%E5%AE%A4%E4%BC%9A%E8%AF%9D%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%86%85%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      groupId - 要清空哪个群组或聊天室的漫游消息。你可以传入群组 ID 或聊天室 ID (required)
      delTime - 要清空哪个时间点及之前的群组或聊天室的漫游消息。该时间为 Unix 时间戳,单位为毫秒 (required)
      返回:
      EMOneWayClearGroupOrRoomRoamingMessagesWithinPeriodResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearGroupOrRoomRoamingMessagesWithinPeriodWithHttpInfo

      public ApiResponse<EMOneWayClearGroupOrRoomRoamingMessagesWithinPeriodResult> oneWayClearGroupOrRoomRoamingMessagesWithinPeriodWithHttpInfo(String username, String groupId, BigDecimal delTime) throws ApiException
      单向清空指定群组或聊天室会话一段时间内的漫游消息 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。若清除了该会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E7%BE%A4%E7%BB%84%E6%88%96%E8%81%8A%E5%A4%A9%E5%AE%A4%E4%BC%9A%E8%AF%9D%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%86%85%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      groupId - 要清空哪个群组或聊天室的漫游消息。你可以传入群组 ID 或聊天室 ID (required)
      delTime - 要清空哪个时间点及之前的群组或聊天室的漫游消息。该时间为 Unix 时间戳,单位为毫秒 (required)
      返回:
      ApiResponse<EMOneWayClearGroupOrRoomRoamingMessagesWithinPeriodResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearGroupOrRoomRoamingMessagesWithinPeriodAsync

      public okhttp3.Call oneWayClearGroupOrRoomRoamingMessagesWithinPeriodAsync(String username, String groupId, BigDecimal delTime, ApiCallback<EMOneWayClearGroupOrRoomRoamingMessagesWithinPeriodResult> _callback) throws ApiException
      单向清空指定群组或聊天室会话一段时间内的漫游消息 (asynchronously) 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。若清除了该会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E7%BE%A4%E7%BB%84%E6%88%96%E8%81%8A%E5%A4%A9%E5%AE%A4%E4%BC%9A%E8%AF%9D%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%86%85%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      groupId - 要清空哪个群组或聊天室的漫游消息。你可以传入群组 ID 或聊天室 ID (required)
      delTime - 要清空哪个时间点及之前的群组或聊天室的漫游消息。该时间为 Unix 时间戳,单位为毫秒 (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
    • oneWayClearUserRoamingMessagesCall

      public okhttp3.Call oneWayClearUserRoamingMessagesCall(String username, ApiCallback _callback) throws ApiException
      Build call for oneWayClearUserRoamingMessages
      参数:
      username - 用户 ID (required)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • oneWayClearUserRoamingMessages

      public EMOneWayClearUserRoamingMessagesResult oneWayClearUserRoamingMessages(String username) throws ApiException
      单向清空指定用户的漫游消息 清空后,该用户无法从服务端拉取到漫游消息,而且该用户的所有会话也会被清除,也拉不到会话列表。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E7%94%A8%E6%88%B7%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      返回:
      EMOneWayClearUserRoamingMessagesResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearUserRoamingMessagesWithHttpInfo

      public ApiResponse<EMOneWayClearUserRoamingMessagesResult> oneWayClearUserRoamingMessagesWithHttpInfo(String username) throws ApiException
      单向清空指定用户的漫游消息 清空后,该用户无法从服务端拉取到漫游消息,而且该用户的所有会话也会被清除,也拉不到会话列表。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E7%94%A8%E6%88%B7%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      返回:
      ApiResponse<EMOneWayClearUserRoamingMessagesResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearUserRoamingMessagesAsync

      public okhttp3.Call oneWayClearUserRoamingMessagesAsync(String username, ApiCallback<EMOneWayClearUserRoamingMessagesResult> _callback) throws ApiException
      单向清空指定用户的漫游消息 (asynchronously) 清空后,该用户无法从服务端拉取到漫游消息,而且该用户的所有会话也会被清除,也拉不到会话列表。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E7%94%A8%E6%88%B7%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      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
    • oneWayClearUserRoamingMessagesWithinPeriodCall

      public okhttp3.Call oneWayClearUserRoamingMessagesWithinPeriodCall(String username, String userId, BigDecimal delTime, ApiCallback _callback) throws ApiException
      Build call for oneWayClearUserRoamingMessagesWithinPeriod
      参数:
      username - 用户 ID (required)
      userId - 要清空与哪个用户的单聊会话的漫游消息。需传入该用户的用户 ID (required)
      delTime - 要清空哪个时间点及之前的单聊漫游消息。该时间为 Unix 时间戳,单位为毫秒 (required)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • oneWayClearUserRoamingMessagesWithinPeriod

      public EMOneWayClearUserRoamingMessagesWithinPeriodResult oneWayClearUserRoamingMessagesWithinPeriod(String username, String userId, BigDecimal delTime) throws ApiException
      单向清空指定单聊会话一段时间内的漫游消息 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。若清除了该会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E5%8D%95%E8%81%8A%E4%BC%9A%E8%AF%9D%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%86%85%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      userId - 要清空与哪个用户的单聊会话的漫游消息。需传入该用户的用户 ID (required)
      delTime - 要清空哪个时间点及之前的单聊漫游消息。该时间为 Unix 时间戳,单位为毫秒 (required)
      返回:
      EMOneWayClearUserRoamingMessagesWithinPeriodResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearUserRoamingMessagesWithinPeriodWithHttpInfo

      public ApiResponse<EMOneWayClearUserRoamingMessagesWithinPeriodResult> oneWayClearUserRoamingMessagesWithinPeriodWithHttpInfo(String username, String userId, BigDecimal delTime) throws ApiException
      单向清空指定单聊会话一段时间内的漫游消息 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。若清除了该会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E5%8D%95%E8%81%8A%E4%BC%9A%E8%AF%9D%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%86%85%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      userId - 要清空与哪个用户的单聊会话的漫游消息。需传入该用户的用户 ID (required)
      delTime - 要清空哪个时间点及之前的单聊漫游消息。该时间为 Unix 时间戳,单位为毫秒 (required)
      返回:
      ApiResponse<EMOneWayClearUserRoamingMessagesWithinPeriodResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • oneWayClearUserRoamingMessagesWithinPeriodAsync

      public okhttp3.Call oneWayClearUserRoamingMessagesWithinPeriodAsync(String username, String userId, BigDecimal delTime, ApiCallback<EMOneWayClearUserRoamingMessagesWithinPeriodResult> _callback) throws ApiException
      单向清空指定单聊会话一段时间内的漫游消息 (asynchronously) 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。若清除了该会话的全部漫游消息,该用户的这个会话在服务端也会被清除,拉取会话列表时拉不到该会话。不过,其他用户不受影响,仍然可以拉取与该用户的漫游消息和会话。文档介绍:https://doc.easemob.com/document/server-side/message_roam_clear.html#%E5%8D%95%E5%90%91%E6%B8%85%E7%A9%BA%E6%8C%87%E5%AE%9A%E5%8D%95%E8%81%8A%E4%BC%9A%E8%AF%9D%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%86%85%E7%9A%84%E6%BC%AB%E6%B8%B8%E6%B6%88%E6%81%AF
      参数:
      username - 用户 ID (required)
      userId - 要清空与哪个用户的单聊会话的漫游消息。需传入该用户的用户 ID (required)
      delTime - 要清空哪个时间点及之前的单聊漫游消息。该时间为 Unix 时间戳,单位为毫秒 (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
    • sendGroupDirectionalMessagesCall

      public okhttp3.Call sendGroupDirectionalMessagesCall(EMCreateMessage emCreateMessage, ApiCallback _callback) throws ApiException
      Build call for sendGroupDirectionalMessages
      参数:
      emCreateMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • sendGroupDirectionalMessages

      public EMSendMessageResult sendGroupDirectionalMessages(EMCreateMessage emCreateMessage) throws ApiException
      发送群聊定向消息 你可以向群组中指定的一个或多个成员发送消息,但单次仅支持指定一个群组。对于定向消息,只有作为接收方的指定成员才能看到消息,其他群成员则看不到该消息。文档介绍:https://doc.easemob.com/document/server-side/message_group.html#%E5%8F%91%E9%80%81%E5%AE%9A%E5%90%91%E6%B6%88%E6%81%AF
      参数:
      emCreateMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendGroupDirectionalMessagesWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendGroupDirectionalMessagesWithHttpInfo(EMCreateMessage emCreateMessage) throws ApiException
      发送群聊定向消息 你可以向群组中指定的一个或多个成员发送消息,但单次仅支持指定一个群组。对于定向消息,只有作为接收方的指定成员才能看到消息,其他群成员则看不到该消息。文档介绍:https://doc.easemob.com/document/server-side/message_group.html#%E5%8F%91%E9%80%81%E5%AE%9A%E5%90%91%E6%B6%88%E6%81%AF
      参数:
      emCreateMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendGroupDirectionalMessagesAsync

      public okhttp3.Call sendGroupDirectionalMessagesAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      发送群聊定向消息 (asynchronously) 你可以向群组中指定的一个或多个成员发送消息,但单次仅支持指定一个群组。对于定向消息,只有作为接收方的指定成员才能看到消息,其他群成员则看不到该消息。文档介绍:https://doc.easemob.com/document/server-side/message_group.html#%E5%8F%91%E9%80%81%E5%AE%9A%E5%90%91%E6%B6%88%E6%81%AF
      参数:
      emCreateMessage - (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
    • sendRoomDirectionalMessagesCall

      public okhttp3.Call sendRoomDirectionalMessagesCall(EMCreateMessage emCreateMessage, ApiCallback _callback) throws ApiException
      Build call for sendRoomDirectionalMessages
      参数:
      emCreateMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • sendRoomDirectionalMessages

      public EMSendMessageResult sendRoomDirectionalMessages(EMCreateMessage emCreateMessage) throws ApiException
      发送聊天室定向消息 你可以向聊天室中指定的一个或多个成员发送消息,但单次仅支持指定一个聊天室。对于定向消息,只有作为接收方的指定成员才能看到消息,其他聊天室成员则看不到该消息。文档介绍:https://doc.easemob.com/document/server-side/message_chatroom.html#%E5%8F%91%E9%80%81%E5%AE%9A%E5%90%91%E6%B6%88%E6%81%AF
      参数:
      emCreateMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendRoomDirectionalMessagesWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendRoomDirectionalMessagesWithHttpInfo(EMCreateMessage emCreateMessage) throws ApiException
      发送聊天室定向消息 你可以向聊天室中指定的一个或多个成员发送消息,但单次仅支持指定一个聊天室。对于定向消息,只有作为接收方的指定成员才能看到消息,其他聊天室成员则看不到该消息。文档介绍:https://doc.easemob.com/document/server-side/message_chatroom.html#%E5%8F%91%E9%80%81%E5%AE%9A%E5%90%91%E6%B6%88%E6%81%AF
      参数:
      emCreateMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendRoomDirectionalMessagesAsync

      public okhttp3.Call sendRoomDirectionalMessagesAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      发送聊天室定向消息 (asynchronously) 你可以向聊天室中指定的一个或多个成员发送消息,但单次仅支持指定一个聊天室。对于定向消息,只有作为接收方的指定成员才能看到消息,其他聊天室成员则看不到该消息。文档介绍:https://doc.easemob.com/document/server-side/message_chatroom.html#%E5%8F%91%E9%80%81%E5%AE%9A%E5%90%91%E6%B6%88%E6%81%AF
      参数:
      emCreateMessage - (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
    • sendOnlineUserBroadcastMessagesCall

      public okhttp3.Call sendOnlineUserBroadcastMessagesCall(EMCreateOnlineUserBroadcastMessage emCreateOnlineUserBroadcastMessage, ApiCallback _callback) throws ApiException
      Build call for sendOnlineUserBroadcastMessages
      参数:
      emCreateOnlineUserBroadcastMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
      Status Code Description Response Headers
      200 OK -
    • sendOnlineUserBroadcastMessages

      public EMSendMessageResult sendOnlineUserBroadcastMessages(EMCreateOnlineUserBroadcastMessage emCreateOnlineUserBroadcastMessage) throws ApiException
      向 app 在线用户发送广播消息 可通过该接口向 app 下的所有在线用户发送广播消息,支持所有消息类型。文档介绍:https://doc.easemob.com/document/server-side/message_broadcast.html#%E5%90%91-app-%E5%9C%A8%E7%BA%BF%E7%94%A8%E6%88%B7%E5%8F%91%E9%80%81%E5%B9%BF%E6%92%AD%E6%B6%88%E6%81%AF
      参数:
      emCreateOnlineUserBroadcastMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendOnlineUserBroadcastMessagesWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendOnlineUserBroadcastMessagesWithHttpInfo(EMCreateOnlineUserBroadcastMessage emCreateOnlineUserBroadcastMessage) throws ApiException
      向 app 在线用户发送广播消息 可通过该接口向 app 下的所有在线用户发送广播消息,支持所有消息类型。文档介绍:https://doc.easemob.com/document/server-side/message_broadcast.html#%E5%90%91-app-%E5%9C%A8%E7%BA%BF%E7%94%A8%E6%88%B7%E5%8F%91%E9%80%81%E5%B9%BF%E6%92%AD%E6%B6%88%E6%81%AF
      参数:
      emCreateOnlineUserBroadcastMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendOnlineUserBroadcastMessagesAsync

      public okhttp3.Call sendOnlineUserBroadcastMessagesAsync(EMCreateOnlineUserBroadcastMessage emCreateOnlineUserBroadcastMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      向 app 在线用户发送广播消息 (asynchronously) 可通过该接口向 app 下的所有在线用户发送广播消息,支持所有消息类型。文档介绍:https://doc.easemob.com/document/server-side/message_broadcast.html#%E5%90%91-app-%E5%9C%A8%E7%BA%BF%E7%94%A8%E6%88%B7%E5%8F%91%E9%80%81%E5%B9%BF%E6%92%AD%E6%B6%88%E6%81%AF
      参数:
      emCreateOnlineUserBroadcastMessage - (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
    • sendRoomBroadcastMessagesCall

      public okhttp3.Call sendRoomBroadcastMessagesCall(EMCreateChatroomBroadcastMessage emCreateChatroomBroadcastMessage, ApiCallback _callback) throws ApiException
      Build call for sendRoomBroadcastMessages
      参数:
      emCreateChatroomBroadcastMessage - (optional)
      _callback - Callback for upload/download progress
      返回:
      Call to execute
      抛出:
      ApiException - If fail to serialize the request body object http.response.details
    • sendRoomBroadcastMessages

      public EMSendMessageResult sendRoomBroadcastMessages(EMCreateChatroomBroadcastMessage emCreateChatroomBroadcastMessage) throws ApiException
      发送聊天室全局广播消息 可通过该接口向 app 下的所有活跃聊天室(聊天室至少存在一个成员,而且曾经至少发送过一条消息)发送广播消息,支持所有消息类型。。文档介绍:https://doc.easemob.com/document/server-side/message_chatroom.html#%E5%8F%91%E9%80%81%E8%81%8A%E5%A4%A9%E5%AE%A4%E5%85%A8%E5%B1%80%E5%B9%BF%E6%92%AD%E6%B6%88%E6%81%AF
      参数:
      emCreateChatroomBroadcastMessage - (optional)
      返回:
      EMSendMessageResult
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendRoomBroadcastMessagesWithHttpInfo

      public ApiResponse<EMSendMessageResult> sendRoomBroadcastMessagesWithHttpInfo(EMCreateChatroomBroadcastMessage emCreateChatroomBroadcastMessage) throws ApiException
      发送聊天室全局广播消息 可通过该接口向 app 下的所有活跃聊天室(聊天室至少存在一个成员,而且曾经至少发送过一条消息)发送广播消息,支持所有消息类型。。文档介绍:https://doc.easemob.com/document/server-side/message_chatroom.html#%E5%8F%91%E9%80%81%E8%81%8A%E5%A4%A9%E5%AE%A4%E5%85%A8%E5%B1%80%E5%B9%BF%E6%92%AD%E6%B6%88%E6%81%AF
      参数:
      emCreateChatroomBroadcastMessage - (optional)
      返回:
      ApiResponse<EMSendMessageResult>
      抛出:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body http.response.details
    • sendRoomBroadcastMessagesAsync

      public okhttp3.Call sendRoomBroadcastMessagesAsync(EMCreateChatroomBroadcastMessage emCreateChatroomBroadcastMessage, ApiCallback<EMSendMessageResult> _callback) throws ApiException
      发送聊天室全局广播消息 (asynchronously) 可通过该接口向 app 下的所有活跃聊天室(聊天室至少存在一个成员,而且曾经至少发送过一条消息)发送广播消息,支持所有消息类型。。文档介绍:https://doc.easemob.com/document/server-side/message_chatroom.html#%E5%8F%91%E9%80%81%E8%81%8A%E5%A4%A9%E5%AE%A4%E5%85%A8%E5%B1%80%E5%B9%BF%E6%92%AD%E6%B6%88%E6%81%AF
      参数:
      emCreateChatroomBroadcastMessage - (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