Event Channels
An EventChannel is a named grouping of EventSubscriptions.
List Event Channels
SDK Method
eventchannel.List()
Return Object
[]*EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Additional Arguments
Show Event Channel
SDK Method
eventchannel.Find()
Return Object
EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
EventChannelFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Event Channel ID. |
Create Event Channel
SDK Method
eventchannel.Create()
Return Object
EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
EventChannelCreateParams Fields
| Field | Default | Description |
|---|---|---|
| Name string Required | Event Channel name. | |
| WorkspaceId int64 | 0 | Workspace ID. 0 means the default workspace. |
| Description string | Event Channel description. | |
| Enabled boolean | true | Whether this Event Channel can dispatch events. |
| DefaultChannel boolean | false | Whether this Event Channel is the default destination for newly published events. |
Update Event Channel
SDK Method
eventchannel.Update()
Return Object
EventChannel
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
EventChannelUpdateParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Event Channel ID. |
| Name string | Event Channel name. |
| WorkspaceId int64 | Workspace ID. 0 means the default workspace. |
| Description string | Event Channel description. |
| Enabled boolean | Whether this Event Channel can dispatch events. |
| DefaultChannel boolean | Whether this Event Channel is the default destination for newly published events. |
Delete Event Channel
SDK Method
eventchannel.Delete()
Return Object
No return value.
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
EventChannelDeleteParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Event Channel ID. |
The EventChannel Object
Some of the methods above return a EventChannel object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Event Channel ID |
| Name string | Event Channel name. |
| WorkspaceId int64 | Workspace ID. 0 means the default workspace. |
| Description string | Event Channel description. |
| Enabled boolean | Whether this Event Channel can dispatch events. |
| DefaultChannel boolean | Whether this Event Channel is the default destination for newly published events. |
| CreatedAt date-time | Event Channel create date/time. |
| UpdatedAt date-time | Event Channel update date/time. |