Memperbarui callback yang digunakan untuk berlangganan event saluran atau pengguna.
Deskripsi operasi
-
Before you call this operation, make sure that you have called the CreateEventSub operation to create a callback that is used to subscribe to channel or user events.
-
An existing channel that you specify in this operation still uses its original callback configuration. The updated configuration can apply to the channel only if you restart the channel after it is closed for longer than 20 minutes.
-
If you only want to update specific parameters, you must also specify the other required parameters with their original values.
QPS limit
You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateEventSub |
none |
*Rtc
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. |
9qb1**** |
| SubscribeId |
string |
Yes |
ID langganan. Anda dapat memperoleh ID dari tanggapan operasi CreateEventSub. |
ad53276431c**** |
| ChannelId |
string |
No |
ID saluran. Anda dapat memanggil operasi ListEventSub untuk mengkueri ID saluran. Catatan
|
123333 |
| Users |
array |
No |
Pengguna yang event-nya ingin Anda Berlangganan. |
|
|
string |
No |
The user whose events you want to subscribe to. If you do not specify this parameter, the events of all users in the channel are subscribed to, including the events of the streamer and viewers. |
user1 |
|
| Events |
array |
Yes |
Tipe event yang ingin Anda Berlangganan. |
|
|
string |
Yes |
The type of the events to which you want to subscribe. Valid values:
|
ChannelEvent |
|
| CallbackUrl |
string |
Yes |
URL callback. Untuk informasi selengkapnya tentang konten callback, lihat CreateEventSub. |
http://****.com/callback |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
AE050E24-BE9B-1E79-BB30-7EA0BBAE7F08 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "AE050E24-BE9B-1E79-BB30-7EA0BBAE7F08"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InputInvalid | %s. | |
| 400 | QuotaLimitError | %s. | |
| 400 | ErrorInvalidCallBackUrl | %s. | |
| 500 | ServerError | %s. | |
| 403 | NoAuth | %s. | |
| 404 | ResourceNotExist | %s. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.