Follow & Unfollow user

请用 (https://yedoll.com/mobile_api/follow) API for access (follow/unfollow) user endpoint


Post 参数

参数 描述
session_id Access token ID 例如: de25cc16eb00960f076...
user_id Followed/Unfollowed user int ID 例如: 4567

成功响应

{
        "code": 200,
        "message": "Subscribed successfully",
        "data":{
            "follow": true
        }
    }

    {
        "code": 200,
        "message": "Subscription canceled successfully",
        "data":{
            "follow": false
        }
    }

    {
        "code": 201,
        "message": "Subscription request sent successfully",
        "data":{
            "follow": false
        }
    }
    

错误响应

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

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