Menambahkan tautan undangan untuk kelompok Instant Messaging (IM).
Deskripsi operasi
The API for adding invite links to IM groups is in beta testing on Meta. Contact your account manager to add your account to the allowlist.
-
Before you call this operation, make sure that an IM group has been created.
-
If you do not have an IM group, call the AddChatGroup operation to create one.
-
After you add an invite link by calling this operation, you can use the link to invite members to the group.
-
Currently, members can join an IM group only using an invite link.
-
A WhatsApp group can have a maximum of 8 members.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:AddChatGroupInviteLink |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BusinessNumber |
string |
Yes |
Nomor telepon bisnis. Untuk mendapatkan nomor ini, panggil operasi ListChatGroup. |
8613800*** |
| ChannelType |
string |
No |
Tipe. Nilai valid:
Catatan
Saat ini, hanya tipe saluran WhatsApp yang didukung. |
|
| GroupId |
string |
Yes |
ID kelompok. Untuk mendapatkan ID ini, panggil operasi ListChatGroup. |
E93kdk**** |
| CustSpaceId |
string |
Yes |
SpaceId atau ID instans sub-pelanggan ISV. Ini adalah ID saluran. Lihat ID saluran di halaman Channel Management. |
cams-x*** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| Message |
string |
The error message. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| InviteLink |
string |
The invite link. |
https://chat.whatsapp.com/**** |
| Code |
string |
The request status code. Valid values:
|
OK |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"AccessDeniedDetail": "None",
"Message": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O\n",
"InviteLink": "https://chat.whatsapp.com/****",
"Code": "OK",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.