Skip to main content

CustomAdvApiClient

Contains all the endpoints needed to manage custom advs.

Constructors

Constructor

new CustomAdvApiClient(): CustomAdvApiClient

Returns

CustomAdvApiClient

Methods

getAllCustomAdv()

static getAllCustomAdv(params?, config?): Promise<SCPaginatedResponse<SCCustomAdvType>>

This endpoint retrieves all custom advs.

Parameters

ParameterTypeDescription
params?CustomAdvParams
config?AxiosRequestConfig

Returns

Promise<SCPaginatedResponse<SCCustomAdvType>>


getASpecificCustomAdv()

static getASpecificCustomAdv(id, config?): Promise<SCCustomAdvType>

This endpoint retrieves a specific custom adv.

Parameters

ParameterTypeDescription
idstring | number
config?AxiosRequestConfig

Returns

Promise<SCCustomAdvType>


searchCustomAdv()

static searchCustomAdv(params?, config?): Promise<SCPaginatedResponse<SCCustomAdvType>>

This endpoint performs search of a Custom Adv

Parameters

ParameterTypeDescription
params?CustomAdvParams
config?AxiosRequestConfig

Returns

Promise<SCPaginatedResponse<SCCustomAdvType>>