Follow & Unfollow user

Please use this (https://YOUR-SITE.COM/mobile_api/follow) API for access (follow/unfollow) user endpoint


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
user_id ​Followed/Un​followed user int ID E.g. 4567

Success response

{
    "code": 200,
    "valid": true,
    "message": "",
    "data": {
        "follow": true
    }
}

Error responses

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

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