Like / Unlike post

Please use this (https://YOUR-SITE.COM/mobile_api/like_post) API for access (like/unlike) post endpoint


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
post_id ​Liked/Unliked post int ID E.g. 4567

Success response

{
    "post_likes": 1,
    "valid": true,
    "message": "",
    "code": 200,
    "data":{
        "like": true
    }
}

Error responses

{
    "code": 401,
    "data": [],
    "message": "Unauthorized Access"
}


{
    "code": 400,
    "err_code": "invalid_request_data",
    "message": "Post id is missing or invalid",
    "data": []
}