Skip to main content

FeedApiClient

Contains all the endpoints needed to manage feed.

Constructors

new FeedApiClient()

new FeedApiClient(): FeedApiClient

Returns

FeedApiClient

Methods

getExploreFeed()

static getExploreFeed(params?, config?): Promise <SCPaginatedResponse<SCFeedUnitType>>

This endpoint retrieves explore feed. This endpoint can be disabled by setting explore_stream_enabled community option to false.

Parameters

ParameterTypeDescription
params?FeedParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedUnitType>>

Source

services/feed/index.ts:35


getMainFeed()

static getMainFeed(params?, config?): Promise <SCPaginatedResponse<SCFeedUnitType>>

This endpoint retrieves the main (home) feed.

Parameters

ParameterTypeDescription
params?FeedParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedUnitType>>

Source

services/feed/index.ts:25


getMainFeedUnseenCount()

static getMainFeedUnseenCount(config?): Promise<SCFeedUnseenCountType>

This endpoint retrieves Main Feed unseen count.

Parameters

ParameterTypeDescription
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedUnseenCountType>

Source

services/feed/index.ts:44


likeFeedObjs()

static likeFeedObjs(object, config?): Promise <SCPaginatedResponse<SCFeedUnitType>>

This endpoint retrieves a list of Feed objects similar to the id of passed objects

Parameters

ParameterTypeDescription
objectnumber[]
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedUnitType>>

Source

services/feed/index.ts:62


markReadASpecificFeedObj()

static markReadASpecificFeedObj(object, config?): Promise<any>

This endpoint marks as read a list of objects in the feed. Usually it is called when a Feed object enter the viewport of the user.

Parameters

ParameterTypeDescription
objectnumber[]
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed/index.ts:53