Group: Process Merge Request

Group: Process Merge Request

处理其他群组发过来的合并群组请求

  1. 前端必须要先获取合并群组请求的ID, “message_type”为1200的消息是合并群组请求消息,可在该数据中的detail字段获取合并群组请求的ID。
  2. 以下是群组合并请求的消息范例, 从”detail” 字段中可获取”request_id”字段,即合并群组请求ID。
  3. 调用processMergeRequest API时,将 “request_id” 值放入请求信息体的”request_id”字段中。
{
    "data": [
        {
            "id": 22608, 
            "from_user": null, 
            "from_name": null, 
            "to_user": 9716362343737, 
            "to_name": "潘 丽达", 
            "to_group": 6999, 
            "content": null, 
            "message_type": 1200, // It is a group merge request message
            "send_time": "2020-06-12T02:49:56.987800Z", 
            "location": null, 
            "timezone": null, 
            "detail": {
                "is_handled": false, 
                "request_id": 4, 
                "source_group": 7011, 
                "target_group": 6999, 
                "source_group_name": "请求合并的群", 
                "target_group_name": "潘 丽达的群", 
                "source_group_creator_uid": 7815769374283, 
                "target_group_creator_uid": 9716362343737, 
                "source_group_creator_name": "WenWei Yang", 
                "target_group_creator_name": "潘 丽达"
            }
        }
    ]
}

Request

HTTP request

POST https://www.featapi.com/api/party/group/{id}/process_merge_request/

Parameters

Path parameters

Parameter nameValueDescription
idstring群组 ID

Authorization

该请求需要授权以下scopes访问权限:

Scopes
party_group

For more information, see the authentication and authorization page.

Request body

In the request body, the following properties:

Property nameValueDescriptionNotes
request_idstring合并群组请求ID
is_approveboolean是否同意。如果为 true,则表示同意,false为拒绝。

Response

如果请求成功,该API返回群组的数据响应体信息。

200 Process the group merge request successfully.

{
    "data": {
        "id": 6999, 
        "name": "潘 丽达群2", 
        "creator": 9716362343737, 
        "creator_fullname": "潘 丽达", 
        "create_time": "2020-04-03T02:42:40.706327Z", 
        "status": 0, 
        "is_valid": true, 
        "bundle_id": null
    }
}

400 Process an invalid group merge request.

{
    "data": {
        "detail": "Not allow, request status is 100"
    }
}

发表评论

您的电子邮箱地址不会被公开。

您可以使用以下 HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Captcha Code