Retrieve single or multiple posts with live object updates and comprehensive post data
The social.plus SDK provides powerful functionality to retrieve posts from your application. Whether you need a single post or multiple posts, the SDK returns results as live objects that automatically update when the underlying data changes.
Retrieve a specific post by its unique identifier with complete post information and real-time updates.
Copy
Ask AI
var token: AmityNotificationToken?func getPostByIdExample() { token = postRepository.getPost(withId: "<post-id>").observe { liveObject, error in // Observer block, Do something here }}