XDbot2 Cave API #16
This-is-XiaoDeng
started this conversation in
General
Replies: 2 comments
-
|
部分功能(如JS返回等)正在开发中,服务使用 Cloudflare Worker + Vercel + GitHub 搭建 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
现在随即回声洞可以返回js啦! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
请求地址
接口列表
随机回声洞
获取一个随机的回声洞内容,包括发送者和文本。
/v1application/json或text/javascript参数
returnjson)json/js)caveIdVarcave_id)caveContentVarcave_content)caveSenderVarcave_sender)返回示例
请求:
响应:
{"id":538,"sender":"IP:127.0.0.1","content":"风急天高猿啸哀,尚思为国戍轮台。夜兰卧听风吹雨,神里绫华入梦来\n\n—— 哔哩哔哩·UID506743561"}请求:
响应:
获取回声洞图片
获取一个指定ID的回声洞图片,以PNG格式返回。
/v1/getImageimage/png参数
id[[Img:<图片ID>]])返回示例
请求:
响应:
获取 API 版本
获取当前API的版本号,以纯文本格式返回。
/v1/versiontext/plain参数
无
返回示例
请求:
响应:
许可
除特殊说明外,所有回声洞内容均采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。
Beta Was this translation helpful? Give feedback.
All reactions