前两篇文章主要讲解如何获取cookie以及关注,该篇介绍如何实现作品点赞
协议接口:https://video.kuaishou.com/graphql【POST】
请求格式:Content-type:application/json
请求头参数:Cookie
请求体参数:
{“operationName”:“visionVideoLike”,“variables”:{“photoId”:“3x8dxnirihidx54”,“photoAuthorId”:“3x22qzwuwri3ec4”,“cancel”:0,“expTag”:“1_i/2000200228026070817_xpcwebhomexxbrilliant0”},“query”:“mutation visionVideoLike($photoId: String, $photoAuthorId: String, $cancel: Int, $expTag: String) {\n visionVideoLike(photoId: $photoId, photoAuthorId: $photoAuthorId, cancel: $cancel, expTag: $expTag) {\n result\n __typename\n }\n}\n”}
参数分析:
一、请求头参数
- Cookie:该值几位登录时获取
二、请求体
请求体中主要变量为作品者uid以及作品vid,其余参数为固定值
三、交流
更多交流,请加群:808798021
扫码加群: