Skip to main content

Class: FeedApiClient

services/feed.FeedApiClient

Contains all the endpoints needed to manage feed.

Constructors

constructor

new FeedApiClient(): FeedApiClient

Returns

FeedApiClient

Methods

getExploreFeed

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

NameType
params?FeedParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPaginatedResponse<SCFeedUnitType>>

Defined in

services/feed/index.ts:35


getMainFeed

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

This endpoint retrieves the main (home) feed.

Parameters

NameType
params?FeedParams
config?AxiosRequestConfig<any>

Returns

Promise<SCPaginatedResponse<SCFeedUnitType>>

Defined in

services/feed/index.ts:25


getMainFeedUnseenCount

getMainFeedUnseenCount(config?): Promise<SCFeedUnseenCountType>

This endpoint retrieves Main Feed unseen count.

Parameters

NameType
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedUnseenCountType>

Defined in

services/feed/index.ts:44


likeFeedObjs

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

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

Parameters

NameType
objectnumber[]
config?AxiosRequestConfig<any>

Returns

Promise<SCPaginatedResponse<SCFeedUnitType>>

Defined in

services/feed/index.ts:62


markReadASpecificFeedObj

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

NameType
objectnumber[]
config?AxiosRequestConfig<any>

Returns

Promise<any>

Defined in

services/feed/index.ts:53