Like / Unlike post
请用 (https://yedoll.com/mobile_api/like_post) API for access (like/unlike) post endpoint
Post 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
post_id | Liked/Unliked post int ID | 例如: 4567 |
成功响应
{
"post_likes": 1,
"message": "",
"code": 200,
"data":{
"like": true
}
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"message": "Post id is missing or invalid",
"data": []
}