Skip to main content

FeedObjectApiClient

Contains all the endpoints needed to manage feed objs (discussions-posts-statuses).

Constructors

new FeedObjectApiClient()

new FeedObjectApiClient(): FeedObjectApiClient

Returns

FeedObjectApiClient

Methods

checkIfFollowingFeedObject()

static checkIfFollowingFeedObject(type, id, config?): Promise<SCFeedObjectFollowingStatusType>

This endpoint returns following = true if the feed obj (identified in path) is followed by the authenticated user

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedObjectFollowingStatusType>

Source

services/feed_object/index.ts:462


checkIfSuspendedFeedObject()

static checkIfSuspendedFeedObject(type, id, config?): Promise<SCFeedObjectSuspendedStatusType>

This endpoint returns suspended = true if the notifications for the feed obj (identified in path) is suspended by the authenticated user

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedObjectSuspendedStatusType>

Source

services/feed_object/index.ts:494


createFeedObject()

static createFeedObject(type, data, config?): Promise<SCFeedObjectType>

This endpoint creates a feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
dataFeedObjCreateParams
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedObjectType>

Source

services/feed_object/index.ts:206


deleteFeedObject()

static deleteFeedObject(type, id, config?): Promise<any>

This endpoint deletes a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:250


feedObjectContributorsList()

static feedObjectContributorsList(type, id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint retrieves all contributors for a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/feed_object/index.ts:265


feedObjectFlagList()

static feedObjectFlagList(type, id, config?): Promise <SCPaginatedResponse<SCFlagType>>

This endpoint retrieves a list of flags for a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFlagType>>

Source

services/feed_object/index.ts:561


feedObjectFlagStatus()

static feedObjectFlagStatus(type, id, config?): Promise <SCPaginatedResponse<SCFlagType>>

Retrieves, if exists, a flag for this contribute created by the authenticated user

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFlagType>>

Source

services/feed_object/index.ts:547


feedObjectFollowingList()

static feedObjectFollowingList(type, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint retrieves all feed objs followed by the authenticated user

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:443


feedObjectHideStatus()

static feedObjectHideStatus(type, id, config?): Promise<SCFeedObjectHideStatusType>

This endpoint retrieves if the feed obj has been hidden by the authenticated user (hidden = true)

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedObjectHideStatusType>

Source

services/feed_object/index.ts:589


feedObjectPollVote()

static feedObjectPollVote(type, id, choice, config?): Promise<any>

This endpoint upvotes a specific poll choice in a feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUSIt can be only "discussion" or "post".
idstring | number
choicenumber
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:397


feedObjectPollVotesList()

static feedObjectPollVotesList(type, id, params?, config?): Promise <SCPaginatedResponse<SCPollVoteType>>

This endpoint retrieves all poll votes for a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUSIt can be only "discussion" or "post".
idstring | number
params?FeedObjectPollVotesSearch
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCPollVoteType>>

Source

services/feed_object/index.ts:413


feedObjectSharesList()

static feedObjectSharesList(type, id, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint retrieves all shares for a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:286


feedObjectSuspendedList()

static feedObjectSuspendedList(type, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint retrieves the list of feed obj which notifications are suspended by the authenticated user

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:512


feedObjectUserSharesList()

static feedObjectUserSharesList(type, id, params?, config?): Promise <SCPaginatedResponse<SCUserType>>

This endpoint retrieves all shares users for a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserType>>

Source

services/feed_object/index.ts:307


feedObjectVotes()

static feedObjectVotes(type, id, params?, config?): Promise <SCPaginatedResponse<SCVoteType>>

This endpoint retrieves all votes for a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCVoteType>>

Source

services/feed_object/index.ts:380


flagFeedObject()

static flagFeedObject(type, id, flag_type, config?): Promise<any>

This endpoint flags a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
flag_typeSCFlagTypeEnum
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:532


followFeedObject()

static followFeedObject(type, id, config?): Promise<any>

This endpoint follows a feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:429


getAllFeedObjects()

static getAllFeedObjects(type, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint retrieves all feed objs

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
params?FeedObjGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:157


getSpecificFeedObject()

static getSpecificFeedObject(type, id, config?): Promise<SCFeedObjectType>

This endpoint retrieves a specific feed obj using ID

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedObjectType>

Source

services/feed_object/index.ts:220


getUncommentedFeedObjects()

static getUncommentedFeedObjects(type, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint retrieves all uncommented feed objs

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:172


hideFeedObject()

static hideFeedObject(type, id, config?): Promise<any>

This endpoint hides the feed obj for the logged user. The feed obj must be in show state

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:575


relatedFeedObjects()

static relatedFeedObjects(type, id, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint restores a feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
params?BaseGetParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:342


restoreFeedObject()

static restoreFeedObject(type, id, config?): Promise<any>

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:327


searchFeedObject()

static searchFeedObject(type, params?, config?): Promise <SCPaginatedResponse<SCFeedObjectType>>

This endpoint performs search operation to feed objs

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
params?BaseSearchParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFeedObjectType>>

Source

services/feed_object/index.ts:191


suspendFeedObject()

static suspendFeedObject(type, id, config?): Promise<any>

This endpoint suspends the notifications for the selected feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:476


updateFeedObject()

static updateFeedObject(type, id, data, config?): Promise<SCFeedObjectType>

This endpoint updates a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
dataFeedObjCreateParams
config?AxiosRequestConfig<any>

Returns

Promise<SCFeedObjectType>

Source

services/feed_object/index.ts:235


voteFeedObject()

static voteFeedObject(type, id, reaction?, config?): Promise<any>

This endpoint upvotes a specific feed obj

Parameters

ParameterTypeDescription
typeDISCUSSION | POST | STATUS
idstring | number
reaction?number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/feed_object/index.ts:363