EmbedApiClient
Contains all the endpoints needed to manage embeds.
Constructors
new EmbedApiClient()
new EmbedApiClient():
EmbedApiClient
Returns
Methods
createEmbed()
static
createEmbed(data
,config
?):Promise
<SCEmbedType
>
This endpoint creates an embed. This operation requires admin role.
Parameters
Parameter | Type | Description |
---|---|---|
data | SCEmbedType | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEmbedType
>
Source
getAllEmbeds()
static
getAllEmbeds(params
?,config
?):Promise
<SCPaginatedResponse
<SCEmbedType
>>
This endpoint retrieves all embeds.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | BaseGetParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCEmbedType
>>
Source
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
Parameter | Type | Description |
---|---|---|
embed_type ? | string | |
embed_id ? | string | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCFeedUnitType
>>
Source
getSpecificEmbed()
static
getSpecificEmbed(id
,config
?):Promise
<SCEmbedType
>
This endpoint retrieves a specific embed using ID.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEmbedType
>
Source
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
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCFeedUnitType
>>
Source
patchASpecificEmbed()
static
patchASpecificEmbed(id
,data
?,config
?):Promise
<SCEmbedType
>
This endpoint patches a specific embed. This operation requires admin role.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
data ? | EmbedUpdateParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEmbedType
>
Source
searchEmbed()
static
searchEmbed(params
?,config
?):Promise
<SCPaginatedResponse
<SCEmbedType
>>
This endpoint performs embed search.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | EmbedSearchParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCEmbedType
>>
Source
updateASpecificEmbed()
static
updateASpecificEmbed(id
,data
?,config
?):Promise
<SCEmbedType
>
This endpoint updates a specific embed. This operation requires admin role.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
data ? | EmbedUpdateParams | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCEmbedType
>