Skip to main content

ReactionApiClient

Contains all the endpoints needed to manage features.

Constructors

new ReactionApiClient()

new ReactionApiClient(): ReactionApiClient

Returns

ReactionApiClient

Methods

getAllReactions()

static getAllReactions(params?, config?): Promise <SCPaginatedResponse<SCReactionType>>

This endpoint retrieves all reactions.

Parameters

ParameterTypeDescription
params?ReactionParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCReactionType>>

Source

services/reactions/index.ts:22


getAllReactionsList()

static getAllReactionsList(params?, config?): Promise<SCReactionType[]>

This endpoint retrieves all reactions data without pagination.

Parameters

ParameterTypeDescription
params?ReactionParams
config?AxiosRequestConfig<any>

Returns

Promise<SCReactionType[]>

Source

services/reactions/index.ts:32


getSpecificReaction()

static getSpecificReaction(id, config?): Promise<SCReactionType>

This endpoint retrieves a specific reaction.

Parameters

ParameterTypeDescription
idnumber
config?AxiosRequestConfig<any>

Returns

Promise<SCReactionType>

Source

services/reactions/index.ts:56