본문으로 건너뛰기

ChannelService

Index

Constructors

constructor

Properties

publicreadonlyhttpRequest

httpRequest: BaseHttpRequest

Methods

publicchannelAddChannelUserInvite

  • Invite a user to the channel Invites a user to a channel.

    @throws

    ApiError


    Parameters

    Returns CancelablePromise<any>

    any Successfully invited the users to the channel.

publicchannelCreate

publicchannelDelChannelUser

  • Remove users from a channel Removes users from a channel

    @throws

    ApiError


    Parameters

    Returns CancelablePromise<any>

    any Successfully removed the users from the channel

publicchannelInfo

  • Get a channel's information Bot-compatible Retrieves information about a channel.

    @throws

    ApiError


    Parameters

    • __namedParameters: { id: string }

    Returns CancelablePromise<{ data?: GetChannelResponse }>

    any Successfully retrieved the channel's information.

publicchannelList

  • channelList(__namedParameters: { activity?: string; disclosure?: string; limit?: number; name?: string; offset?: string; page?: number; type?: string; workspaceId: string }): CancelablePromise<{ data?: GetChannelListResponse }>
  • List out channels Lists out a given number of channels from a workspace. This method uses the Swit API's pagination scheme.

    @throws

    ApiError


    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

publicchannelUpdateChannelArchive

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.

    @throws

    ApiError


    Parameters

    • __namedParameters: { channelId: string; limit?: number; offset?: string; page?: number }

    Returns CancelablePromise<{ data?: GetChannelUserListResponse }>

    any Successfully retrieved the channel members.