ChannelService
Index
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns ChannelService
Properties
publicreadonlyhttpRequest
Methods
publicchannelAddChannelUserInvite
Parameters
__namedParameters: { requestBody: AddChannelUserInviteParam }
Returns CancelablePromise<any>
any Successfully invited the users to the channel.
publicchannelCreate
Create a channel Creates a new channel in a workspace.
Parameters
__namedParameters: { requestBody: AddChannelParam }
Returns CancelablePromise<{ data?: AddChannelResponse }>
any Successfully created the channel.
publicchannelDelChannelUser
Remove users from a channel Removes users from a channel
Parameters
__namedParameters: { requestBody: DelChannelUserParam }
Returns CancelablePromise<any>
any Successfully removed the users from the channel
publicchannelInfo
Get a channel's information
Bot-compatible
Retrieves information about a channel.Parameters
__namedParameters: { id: string }
Returns CancelablePromise<{ data?: GetChannelResponse }>
any Successfully retrieved the channel's information.
publicchannelList
List out channels Lists out a given number of channels from a workspace. This method uses the Swit API's pagination scheme.
Parameters
__namedParameters: { activity?: string; disclosure?: string; limit?: number; name?: string; offset?: string; page?: number; type?: string; workspaceId: string }
Returns CancelablePromise<{ data?: GetChannelListResponse }>
any Successfully retrieved the channels.
publicchannelUpdate
Update a channel Updates an existing channel.
Parameters
__namedParameters: { requestBody: PutChannelParam }
Returns CancelablePromise<{ data?: PutChannelResponse }>
any Successfully updated the channel.
publicchannelUpdateChannelArchive
Archive/unarchive a channel Updates a channel's archiving status.
Parameters
__namedParameters: { requestBody: UpdateChannelArchiveParam }
Returns CancelablePromise<void>
void
publicchannelUserList
List out channel members
Bot-compatible
Lists out a given number of members belonging to a channel. This method uses the Swit API's pagination scheme.Parameters
__namedParameters: { channelId: string; limit?: number; offset?: string; page?: number }
Returns CancelablePromise<{ data?: GetChannelUserListResponse }>
any Successfully retrieved the channel members.
Invite a user to the channel Invites a user to a channel.
ApiError