Skip to main content

EmbedApiClient

Contains all the endpoints needed to manage embeds.

Constructors

new EmbedApiClient()

new EmbedApiClient(): EmbedApiClient

Returns

EmbedApiClient

Methods

createEmbed()

static createEmbed(data, config?): Promise<SCEmbedType>

This endpoint creates an embed. This operation requires admin role.

Parameters

ParameterTypeDescription
dataSCEmbedType
config?AxiosRequestConfig<any>

Returns

Promise<SCEmbedType>

Source

services/embed/index.ts:38


getAllEmbeds()

static getAllEmbeds(params?, config?): Promise <SCPaginatedResponse<SCEmbedType>>

This endpoint retrieves all embeds.

Parameters

ParameterTypeDescription
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEmbedType>>

Source

services/embed/index.ts:28


getEmbedFeed()

static getEmbedFeed(embed_type?, embed_id?, config?): Promise <SCPaginatedResponse<SCFeedUnitType>>

This endpoint retrieves the embed's feed which contains Feed that has the Embed as associated media.

Parameters

ParameterTypeDescription
embed_type?string
embed_id?string
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedUnitType>>

Source

services/embed/index.ts:87


getSpecificEmbed()

static getSpecificEmbed(id, config?): Promise<SCEmbedType>

This endpoint retrieves a specific embed using ID.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCEmbedType>

Source

services/embed/index.ts:57


getSpecificEmbedFeed()

static getSpecificEmbedFeed(id, config?): Promise <SCPaginatedResponse<SCFeedUnitType>>

This endpoint retrieves the embed's feed which contains Feed that has an Embed as associated media.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedUnitType>>

Source

services/embed/index.ts:97


patchASpecificEmbed()

static patchASpecificEmbed(id, data?, config?): Promise<SCEmbedType>

This endpoint patches a specific embed. This operation requires admin role.

Parameters

ParameterTypeDescription
idstring | number
data?EmbedUpdateParams
config?AxiosRequestConfig<any>

Returns

Promise<SCEmbedType>

Source

services/embed/index.ts:77


searchEmbed()

static searchEmbed(params?, config?): Promise <SCPaginatedResponse<SCEmbedType>>

This endpoint performs embed search.

Parameters

ParameterTypeDescription
params?EmbedSearchParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCEmbedType>>

Source

services/embed/index.ts:47


updateASpecificEmbed()

static updateASpecificEmbed(id, data?, config?): Promise<SCEmbedType>

This endpoint updates a specific embed. This operation requires admin role.

Parameters

ParameterTypeDescription
idstring | number
data?EmbedUpdateParams
config?AxiosRequestConfig<any>

Returns

Promise<SCEmbedType>

Source

services/embed/index.ts:67