SocialSisterYi / bilibili-API-collect

哔哩哔哩-API收集整理【不断更新中....】
https://socialsisteryi.github.io/bilibili-API-collect/
Other
14.79k stars 1.68k forks source link

动态发表图片API #313

Open cmy2008 opened 2 years ago

cmy2008 commented 2 years ago

( web端投稿)

https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/create_draw

请求方式:GET

​ ​正文参数:

参数名 类型 内容
biz num
category  num
type num 0
pictures str 图片json
description str 描述?
content str 相薄内容

pictures json:

[{
    "img_src": "b站图片链接",
    "img_width": 1920,
    "img_height": 1200,
    "img_size": 1185.021484375
}]

示例:

curl https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/create_draw \
--data-urlencode 'biz=3' \
--data-urlencode 'category=3' \
--data-urlencode 'type=0' \
--data-urlencode 'pictures=[{"img_src":"http://i0.hdslb.com/bfs/album/cb8e32714c732864c7598a277665a3579aadecac.jpg","img_width":1920,"img_height":1200,"img_size":1185.021484375}]' \
--data-urlencode 'description=test3' \
--data-urlencode 'content=test3' \
-b 'SESSDATA=xxx'

查看响应示例:

{
  "code": 0,
  "msg": "",
  "message": "",
  "data": {
    "doc_id": "184528134",
    "dynamic_id": 620695664163096143,
    "dynamic_id_str": "620695664163096143",
    "_gt_": 0
  }
}
SocialSisterYi commented 2 years ago

感谢提供

SocialSisterYi commented 2 years ago

相簿投稿API有误,应该是这个 https://api.vc.bilibili.com/link_draw/v1/doc/create

cmy2008 commented 2 years ago

相簿投稿API有误,应该是这个 https://api.vc.bilibili.com/link_draw/v1/doc/create

确实弄错了,这个应该是发表图片动态