GoChat
  • Overview
  • Demo App
  • SDK Integration
  • Client-Side Implementation
  • GoChat Cloud Service
  • Server APIs
  • Error codes
  • Documentation
  • GoChat
  • Server APIs
  • Respond to On-Stage Invite

Respond to On-Stage Invitation

Last updated:2021-04-25 20:24

1 Description

Listeners accept or reject the on-stage invitation from the host.

Rate limit: 10 requests / second.

2 Request Method and Endpoint

  • Request method: POST
  • Request endpoint: /chat_room/response_onstage_invite
  • Content-Type: application/json

3 Request Parameters

Parameter Type Required Example Description
uid Int32 Yes 171171717 User ID.
room_id String Yes "11717" Room ID.
invite_token String Yes "xxxsss" Invitation token.
respond Int32 Yes 1

Response:

  • 1: Rejected
  • 2: Accepted

4 Request Example

{
  "uid":9999,
  "room_id":"46466",
  "invite_token":"ffiehfhehf"
  "respond":2
}

5 Response Parameters

None.

6 Response Example

{
    "ret": {
        "code": 0,
        "message": "succeed"
    }
}

7 Return Codes

Return Code Description
80001 Incorrect parameter.
80012 The user is offline.
80002 The room does not exist.
80011 The user is not in the room.
Page Directory