Latest stories

get_walls_notice

  • Inputs
{
    "base": "integer has dependency on page: optional",
    "notice_type": "integer: type of notice",
    "page": "string: allowed: 'next', 'prev': has dependency to base: for sorting into multiple pages: optional",
    "wall_id": "integer: wall id"
}

  • Errors
{
    "You_have_not_permission": "user must be admin of the wall",
    "must_login": "user must be login",
    "notice_type": [
        {
            "min value is 0": "minimum valid value is 0"
        },
        {
            "max value is 2": "maximum valid value is 2"
        }
    ]
}

  • Extra Description
Return a list of walls notice

  • Sample
  • Url:
https://api.pantel.me/a/get_walls_notice?wall_id=-1000701
  • Output:
                                {
    "result": [
        {
            "body": "message text",
            "id": 1595336925741273,
            "media_dataurl": null,
            "media_path": null,
            "media_server_id": null,
            "notice": "{\"name\": \"test user\", \"chat_id\": \"010610f60047f7ed65cd54bcfef2bb0359d6\", \"user_id\": 1579951154796510, \"comment_id\": 15953369219628532, \"message_id\": 15953368907690604}",
            "time": 1595336921.9628532,
            "type": 0,
            "wall_id": -1000701
        },
        {
            "body": "message text",
            "id": 1595336901851876,
            "media_dataurl": null,
            "media_path": null,
            "media_server_id": null,
            "notice": "{\"name\": \"test user\", \"likes\": 1, \"chat_id\": \"010610f60047f7ed65cd54bcfef2bb0359d6\", \"user_id\": 1579951154796510, \"message_id\": 15953368890226490}",
            "time": 1595336901.828286,
            "type": 2,
            "wall_id": -1000701
        },
        {
            "id": 1595322411754805,
            "notice": "{\"name\": \"test user\", \"user_id\": 1765326, \"is_pending\": 0}",
            "time": 1595322411.7554953,
            "type": 1,
            "wall_id": -1000701
        }
    ],
    "status": "success",
    "time": 1547970701.008957
}