API說明java
1、 用戶管理接口(UserManager)網絡
getUserInfo: 獲取用戶信息spa
addToBlacklist: 添加黑名單接口
removeFromBlacklist: 移除黑名單rem
getBlackList:獲取黑名單列表get
checkBlack:檢查用戶是否在黑名單it
2、聊天管理接口(ChatManager)io
sendMessage: 發送消息date
getAllLocalConversations: 獲取全部本地會話List
setConversationDisturb: 設置會話是否免打擾
getConversationDisturb:獲取會話是否免打擾
getMessageList:獲取會話消息記錄
delMessage:刪除消息
delConversation:刪除會話
markConversationAllMessageAsRead:標記某會話全部消息爲已讀
3、羣管理接口(GroupManager)
createGroup: 建立羣
inviteUserIntoGroup: 邀請用戶進入羣
removeUserFromGroup:刪除羣成員
transferGroup:轉讓羣
exitGroup:退出羣
updateGroupInfo:修改羣信息
getGroupList: 獲取用戶所在羣組
getGroupInfo: 獲取羣信息
findGroup:查找羣信息
joinGroup:加入羣組
4、API錯誤碼
API返回的錯誤碼說明以下:(詳見MobIMErrorCode.java說明)
-1 網絡請求失敗
-2 請求錯誤