Skip to content

kient / ChannelAPI

Class: ChannelAPI

src/api/channel/index.ts:9

Description placeholder

Extends

  • APIBase

Constructors

new ChannelAPI()

ts
new ChannelAPI(kient): ChannelAPI

src/api/api-base.ts:7

Parameters

ParameterType
kientKient

Returns

ChannelAPI

Inherited from

ts
APIBase.constructor

Properties

PropertyModifierTypeInherited fromDefined in
kientreadonlyKientAPIBase.kientsrc/api/api-base.ts:5

Methods

getAuthorisedUser()

ts
getAuthorisedUser(): Promise<Channel>

src/api/channel/index.ts:49

Returns the currently authorised user's channel details

Returns

Promise<Channel>


getById()

ts
getById(id): Promise<Channel>

src/api/channel/index.ts:24

Returns a singular channel by ID

Parameters

ParameterTypeDescription
idnumberAccepts a singular user ID that will be queried for

Returns

Promise<Channel>


getByIds()

ts
getByIds(ids): Promise<Channel[]>

src/api/channel/index.ts:15

Returns an array of channel by an array of user IDs

Parameters

ParameterTypeDescription
idsnumber[]Accepts an array of user IDs that will be queried for

Returns

Promise<Channel[]>


getBySlug()

ts
getBySlug(slug): Promise<Channel>

src/api/channel/index.ts:42

Returns a singular channel by slug

Parameters

ParameterTypeDescription
slugstringAccepts a singular channel slug that will be queried for

Returns

Promise<Channel>


getBySlugs()

ts
getBySlugs(slugs): Promise<Channel[]>

src/api/channel/index.ts:33

Returns an array of channel by an array of channel slugs

Parameters

ParameterTypeDescription
slugsstring[]Accepts an array of channel slugs that will be queried for

Returns

Promise<Channel[]>