FeedObjectApiClient
Contains all the endpoints needed to manage feed objs (discussions-posts-statuses).
Constructors
Constructor
new FeedObjectApiClient():
FeedObjectApiClient
Returns
FeedObjectApiClient
Methods
checkIfFollowingFeedObject()
staticcheckIfFollowingFeedObject(type,id,config?):Promise<SCFeedObjectFollowingStatusType>
This endpoint returns following = true if the feed obj (identified in path) is followed by the authenticated user
Parameters
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
id | string | number | |
config? | AxiosRequestConfig |
Returns
Promise<SCFeedObjectFollowingStatusType>
checkIfSuspendedFeedObject()
staticcheckIfSuspendedFeedObject(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
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
id | string | number | |
config? | AxiosRequestConfig |
Returns
Promise<SCFeedObjectSuspendedStatusType>
createFeedObject()
staticcreateFeedObject(type,data,config?):Promise<SCFeedObjectType>
This endpoint creates a feed obj
Parameters
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
data | FeedObjCreateParams | |
config? | AxiosRequestConfig |
Returns
Promise<SCFeedObjectType>
deleteFeedObject()
staticdeleteFeedObject(type,id,config?):Promise<any>
This endpoint deletes a specific feed obj
Parameters
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
id | string | number | |
config? | AxiosRequestConfig |
Returns
Promise<any>
feedObjectContributorsList()
staticfeedObjectContributorsList(type,id,params?,config?):Promise<SCPaginatedResponse<SCUserType>>
This endpoint retrieves all contributors for a specific feed obj
Parameters
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
id | string | number | |
params? | BaseGetParams | |
config? | AxiosRequestConfig |
Returns
Promise<SCPaginatedResponse<SCUserType>>
feedObjectDraftedList()
staticfeedObjectDraftedList(type,params?,config?):Promise<SCPaginatedResponse<SCFeedObjectType>>
This endpoint retrieves the list of drafted feed objects
Parameters
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
params? | BaseGetParams | |
config? | AxiosRequestConfig |
Returns
Promise<SCPaginatedResponse<SCFeedObjectType>>
feedObjectFlagList()
staticfeedObjectFlagList(type,id,config?):Promise<SCPaginatedResponse<SCFlagType>>
This endpoint retrieves a list of flags for a specific feed obj
Parameters
| Parameter | Type | Description |
|---|---|---|
type | DISCUSSION | POST | STATUS | |
id | string | number | |
config? | AxiosRequestConfig |