User Posts

Get the list of posts of a user. Replacing userPosts()

GET

Get user's posts

GET https://api.metaforo.io/v2/users/{user_id}/posts

Get user's posts

Request Body

Name
Type
Description

per_page

Int

How many items to return per page

page

Int

Which page of results to return

user_id*

Int

The ID of the User

filter

string

"tips"/"likes". Filter by "tips" or "likes"

{
    "status": true,
    "code": "20000",
    "description": "",
    "server": "rest",
    "data": {
        "user_posts": [
            {
                "id": 16417,
                "thread_id": 5054,
                "user_id": 3,
                "sign": "",
                "sign_data": null,
                "sign_msg": null,
                "content": "[{\"insert\":\"Can't see the video?\\n\"}]",
                "arweave": null,
                "group_post_id": null,
                "group_thread_id": null,
                "parent_id": -1,
                "depth": 1,
                "group_id": 107,
                "deleted": 0,
                "deleted_by": 0,
                "nsfw": 0,
                "nsfw_score": 0,
                "username": "yellowpeter",
                "user_avatar": "https://www.everforo.com/img/default_avatar_15.png",
                "group_name": "answers",
                "group_title": "Answers",
                "like_username": "",
                "first_post_id": 7533,
                "thread_title": "Owl cam",
                "thread_poster_id": 1264,
                "parent_poster_name": null,
                "thread_poster_name": "BlueCat"
            },
            {
                "id": 14626,
                "thread_id": 9042,
                "user_id": 3,
                "sign": "",
                "sign_data": null,
                "sign_msg": null,
                "content": "[{\"insert\":\"Unfortunately we are not able to include them in this release. But these features will be included in next release. \"},{\"insert\":{\"emoji\":{\"name\":\"grinning\",\"unicode\":\"1f600\"}}},{\"insert\":\"\\n\"}]",
                "arweave": null,
                "group_post_id": null,
                "group_thread_id": null,
                "parent_id": 14604,
                "depth": 2,
                "group_id": 1,
                "deleted": 0,
                "deleted_by": 0,
                "nsfw": 0,
                "nsfw_score": 0,
                "username": "yellowpeter",
                "user_avatar": "https://www.everforo.com/img/default_avatar_15.png",
                "group_name": "EveforoOfficialDiscussionGroup",
                "group_title": "Eveforo Official Discussion Group",
                "like_username": "",
                "first_post_id": 14380,
                "thread_title": "Everforo 1.3 Release",
                "thread_poster_id": 3,
                "parent_poster_name": "RaduVarga",
                "thread_poster_name": "yellowpeter"
            }
        ]
    }
}

Good to know: This API method was created using the API Method block, it's how you can build out an API method documentation from scratch. Have a play with the block and you'll see you can do some nifty things like add and reorder parameters, document responses, and give your methods detailed descriptions.

Last updated