mirror of
https://github.com/ragestudio/comty.git
synced 2025-07-10 17:54:16 +00:00
964 B
964 B
sidebar_position
sidebar_position |
---|
1 |
Get user posts
Retrieves the public posts of a user.
```js async function PostModel.getUserPosts(payload) ```
[Object] Payload
Parameter | Type | Optional | Default | Description |
---|---|---|---|---|
user_id | string | false | ||
trim | number | true | 0 | Trim the post index content |
limit | number | true | 10 | Limit the number of posts to fetch |
Success Response
Parameter | Type | Content |
---|---|---|
data | Array | [post_obj, ...] |