Skip to main content

Post Report

Used to report a Post/Comment with appropriate reasons.

Steps to Report a Post/Comment

  1. Use the report() function provided by the lmFeedClient object created earlier.
  2. Create an instance of PostReportRequest, as shown in the snippet and pass it to the above method.
  3. Use the response as per your requirement
try {
const postReportRequest = PostReportRequest.builder()
.setEntityId(entityId) // entitiy id to be reported
.setUuid(uuid) // uuid to be reported
.setEntityType(entityType) // entitiy type to be reported
.setTagId(tagId) // tagId for the post
.setReason(reason) // optional reason
.build();
const response = await lmFeedClient.postReport(postReportRequest);
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}

Models

PostReportRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
entityIdstringUnique identifier for the entity
uuidstringUniversally unique identifier
entityTypenumberType of the entity
tagIdnumberIdentifier for the associated tag
reasonstringReason or context for the entity✔️