bilibili-API-collect/dynamic/delete.md
2021-11-03 15:32:12 +08:00

1.1 KiB
Raw Blame History

删除动态

http://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/rm_dynamic

请求方式POST

认证方式CookieSESSDATA

正文参数multipart/form-data

参数名 类型 内容
dynamic_id num 动态id
csrf_token str csrf

json回复

根对象:

字段 类型 内容
code num 0:成功
500404:已经删除过
500406:不是自己的
msg str 错误信息
message str 和msg一样
data obj 未知
查看示例
curl 'https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/rm_dynamic' \
    -X POST \
    -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0' \
    -H 'Referer: https://t.bilibili.com/' \
    -H 'Cookie: SESSDATA=********; bili_jct=de2731532b4ab96bc8536da948932668;' \
    --data-raw 'dynamic_id=588320531406678918&csrf_token=de2731532b4ab96bc8536da948932668&csrf=de2731532b4ab96bc8536da948932668'
{"code":0,"msg":"","message":"","data":{"_gt_":0}}