Latest stories

search

  • Inputs
{
    "base": "integer: has dependency to page: for sorting into multiple pages: optional",
    "lat": "float numeric, has dependency to long: optional",
    "long": "float numeric, has dependency to lat: optional",
    "mode": "string: allowed: 'user', 'wall', 'all'",
    "page": "string: allowed: 'next', 'prev': has dependency to base: for sorting into multiple pages: optional",
    "term": "string: maximum length 50 characters: search term"
}

  • Errors
{
    "invalid_location": "if lat or long is out of physically acceptable range",
    "mode": [
        {
            "unallowed value X": "mode must be one of 'wall', 'user' or 'all' "
        }
    ],
    "must_login": "user must be login",
    "page": [
        {
            "unallowed value X": "value allowed for page: 'next', 'prev'"
        }
    ]
}

  • Extra Description
Search for users or wall or both. results can be sorted based on distance from user. output contains result for 1 page. using page and base leads to view other pages. input page equals to next sorts result ascending in base number and prev sorts results descending

  • Sample
  • Url:
https://api.pantel.me/a/search?term=xl&mode=wall&page=next&base=5
  • Output:
                                {
    "search_result": [
        {
            "base": 6,
            "category_id": 1,
            "description": "null",
            "image_path": "*/*/*/*/*/***********************/ic0c2fded73cac48ca756ed19d44bba4e.jpg",
            "image_server_id": 1,
            "name": "Xbohxlx",
            "type": 2,
            "user_name": "jSmith",
            "wall_id": -1000083
        },
        {
            "base": 7,
            "category_id": 1,
            "description": "null",
            "image_path": "*/*/*/*/*/***********************/i4252b210d2b46821f1504788aff16b52.jpg",
            "image_server_id": 1,
            "name": "Xlahbbqx",
            "type": 2,
            "user_name": "testxdxjwyhx",
            "wall_id": -1000058
        },
        {
            "base": 8,
            "category_id": 1,
            "description": "null",
            "image_path": "*/*/*/*/*/***********************/i782e6aff207b834fb0378f7ae3f4b682.jpg",
            "image_server_id": 1,
            "name": "Xoytxlvgx",
            "type": 2,
            "user_name": "testxzmrsvdfx",
            "wall_id": -1000048
        }
    ],
    "status": "success",
    "time": 1546330350.4398363
}