Skip to main content

Class: CustomAdvApiClient

services/custom_adv.CustomAdvApiClient

Contains all the endpoints needed to manage custom advs.

Constructors

constructor

new CustomAdvApiClient(): CustomAdvApiClient

Returns

CustomAdvApiClient

Methods

getASpecificCustomAdv

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

This endpoint retrieves a specific custom adv.

Parameters

NameType
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCCustomAdvType>

Defined in

services/custom_adv/index.ts:23


getAllCustomAdv

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

This endpoint retrieves all custom advs.

Parameters

NameType
params?CustomAdvParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPaginatedResponse<SCCustomAdvType>>

Defined in

services/custom_adv/index.ts:32


searchCustomAdv

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

This endpoint performs search of a Custom Adv

Parameters

NameType
params?CustomAdvParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPaginatedResponse<SCCustomAdvType>>

Defined in

services/custom_adv/index.ts:42