Get Post
Get Post ID
To access post information or perform actions on a post such delete, update, add comment, and flag/unflag a post, you will need the postId
as a parameter. You can retrieve the postId
by doing a feed query which will return a list of the feed's posts along with the post information. Refer to our Feed and Timeline documentation for more details on querying feeds.
Creating a post will also return a response that contains post data with the postId
.
Get Post
You can use the postForId()
method in order to get a single post. You need to pass the postId
of the requested post as the parameter.
The method returns a liveobject
instance of a post model. It will throw an error if an incorrect parameter is passed.
Getting the file URL from post
To get the URL of an image, file, or video from a post, you need to call the getFile
method first passing the file's ID as the parameter. The imageId
, fileId
, and videoId
can be retrieved from the response after successfully creating the file.
Every file has a fileUrl
field which can be used to download the file, show the image, or play video.
Last updated