Save Post
The LikeMinds ReactNative feed SDK provides "Save Post" feature. You can integrate it in your ReactNative application to enhance user experience by allowing them to bookmark and revisit their favorite posts at their convenience. Enable seamless content curation, empowering users to organize and access valuable information with ease.
Steps to save a post
- Use the
savePost()
function provided by thelmFeedClient
object created earlier. - Create an instance of
SavePostRequest
, as shown in the snippet and pass it to the above method. - Use the response as per your requirement
try {
const savePostRequest = SavePostRequest.builder()
.setPostId("<ENTER_POST_ID>")
.build();
const response = await lmFeedClient.savePost(savePostRequest);
// Use the response as per your requirement.
} catch (error) {
// Use the error as per your requirement.
}
Models
SavePostRequest
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
postId | string | Unique id of the post saved. |