Updated on 2025-11-17 GMT+08:00

Inviting Users to a Meeting

handleInviteUserResult

API Description

This API is used to invite soft client users (only those in the corporate directory created in Huawei Cloud Meeting) and Polycom devices.

Precautions

  1. Call this API after calling the API for joining a meeting.
  2. Call this API only after you receive the event of the meeting joining result notification.

Method Definition

1
handleInviteUserResult(userInfo):Promise<Result>

Parameter Description

Table 1 Description

Parameter

Mandatory

Type

Description

userInfo

Yes

array

Information about inviting users to a meeting. For details about the array members, see Table 2.

Table 2 userInfo member description

Type

Mandatory

Type

Description

userUUID

No

string

UUID of the participant. This parameter is carried when you invite a soft client user (only those in the corporate directory created in Huawei Cloud Meeting).

name

No

string

Participant name or display name. The value can contain up to 96 characters.

phone

Yes

string

Number. The value can contain up to 127 characters.

The value is a PSTN number in the PSTN call scenario.

The value is a SIP number when a client user is called.

The value is the meeting ID when a Polycom device user is called.

type

No

String

Terminal type. Default value: normal. Range:

normal: soft client.

terminal: hard terminal.

mobile: mobile number.

Sample Code

1
2
3
4
5
6
7
// Invite a user to a meeting.
HWMeeting.handleInviteUserResult([{"type":"normal","userUUID": "User ID","name":"Username","phone":"Called number"}]).then(() => { 
   // API called.
 }).catch((e) => { 
   // API calling failed.
   ...   
 });