kient / ChannelAPI
Class: ChannelAPI
Description placeholder
Extends
APIBase
Constructors
new ChannelAPI()
ts
new ChannelAPI(kient): ChannelAPIParameters
| Parameter | Type |
|---|---|
kient | Kient |
Returns
Inherited from
ts
APIBase.constructorProperties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
kient | readonly | Kient | APIBase.kient | src/api/api-base.ts:5 |
Methods
getAuthorisedUser()
ts
getAuthorisedUser(): Promise<Channel>Returns the currently authorised user's channel details
Returns
Promise<Channel>
getById()
ts
getById(id): Promise<Channel>Returns a singular channel by ID
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Accepts a singular user ID that will be queried for |
Returns
Promise<Channel>
getByIds()
ts
getByIds(ids): Promise<Channel[]>Returns an array of channel by an array of user IDs
Parameters
| Parameter | Type | Description |
|---|---|---|
ids | number[] | Accepts an array of user IDs that will be queried for |
Returns
Promise<Channel[]>
getBySlug()
ts
getBySlug(slug): Promise<Channel>Returns a singular channel by slug
Parameters
| Parameter | Type | Description |
|---|---|---|
slug | string | Accepts a singular channel slug that will be queried for |
Returns
Promise<Channel>
getBySlugs()
ts
getBySlugs(slugs): Promise<Channel[]>Returns an array of channel by an array of channel slugs
Parameters
| Parameter | Type | Description |
|---|---|---|
slugs | string[] | Accepts an array of channel slugs that will be queried for |
Returns
Promise<Channel[]>