目录

群组相关接口

这些接口提供给 APP 服务端调用,客户端不能直接调用;访问方法见:服务端 REST API 接口介绍

创建群组

{
   "error_code":401,
   "error": "账户未登陆"
}
{
    "error_code": 4001,
    "error": "缺少参数"
}
{
    "error_code": 4042,
    "error":"群组成员数超过限制"
}
//包含群成员具体信息
{
    "id": "2d9384c03dbb11e69860d7e34c9bca74",
    "creator": "d67bae603dba11e69860d7e34c9bca74",
    "create_time": 1467178481420,
    "update_time": 1467179440035,
    "desc": "desc123",
    "name": "groupTest",
    "number": 3,
    "member": [
        {
            "id": "038cda003dbb11e69860d7e34c9bca74",
            "nickname": "jack",
            "createTime": 1467178410923,
        },
        {
            "id": "d67bae603dba11e69860d7e34c9bca74",
            "nickname": "nick",          
            "createTime": 1467178335355,
        },
        {
            "id": "ec9d6c103dba11e69860d7e34c9bca74",
            "nickname": "tom",            
            "createTime": 1467178372442,           
        }
    ],
    "conversation": 0
}

更新群组

{
   "error_code":401,
   "error": "账户未登陆"
}
{
    "error_code": 4001,
    "error": "缺少参数"
}
{
    "error_code": 4019,
    "error": "群组不存在"
}
{
    "error_code": 4020,
    "error": "对不起,您没有权限"
}
{
    "error_code": 2000,
}

获取群组信息

{
   "error_code":401,
   "error": "账户未登陆"
}
{
    "error_code": 4001,
    "error": "缺少参数"
}
{
    "error_code": 4019,
    "error": "群组不存在"
}
{
    "error_code": 4020,
    "error": "对不起,您没有权限"
}
//包含群成员具体信息
{
    "id": "2d9384c03dbb11e69860d7e34c9bca74",
    "creator": "d67bae603dba11e69860d7e34c9bca74",
    "create_time": 1467178481420,
    "update_time": 1467179440035,
    "desc": "desc123",
    "name": "groupTest",
    "number": 3,
    "member": [
        {
            "id": "038cda003dbb11e69860d7e34c9bca74",
            "nickname": "jack",
            "createTime": 1467178410923,
        },
        {
            "id": "d67bae603dba11e69860d7e34c9bca74",
            "nickname": "nick",          
            "createTime": 1467178335355,
        },
        {
            "id": "ec9d6c103dba11e69860d7e34c9bca74",
            "nickname": "tom",            
            "createTime": 1467178372442,           
        }
    ],
    "conversation": 0
}

加入群组

{
   "error_code":401,
   "error": "账户未登陆"
}
{
    "error_code": 4001,
    "error": "缺少参数"
}
{
    "error_code": 4019,
    "error": "群组不存在"
}
{
    "error_code": 4020,
    "error": "对不起,您没有权限"
}
{
    "error_code": 4042,
    "error": "超过群组成员限制"
}
{
    "error_code": 2000,
    "join_member":[
           {
                "id": "038cda003dbb11e69860d7e34c9bca74",
                "nickname": "jack",
                "createTime": 1467178410923,
            }

    ]
}

将用户从群组中移除

{
   "error_code":401,
   "error": "账户未登陆"
}
{
    "error_code": 4001,
    "error": "缺少参数"
}
{
    "error_code": 4019,
    "error": "群组不存在"
}
{
    "error_code": 4020,
    "error": "对不起,您没有权限"
}
{
    "error_code": 2000,
}

退出群组

{
   "error_code":401,
   "error": "账户未登陆"
}
{
    "error_code": 4001,
    "error": "缺少参数"
}
{
    "error_code": 4019,
    "error": "群组不存在"
}
{
    "error_code": 2000,
}