那么这个没有下一页的逻辑我是否应该换成 items.len < 20
]]>接口:
{ "id": 870986, "title": "xxx", "content_rendered": "xxx", "syntax": 1, "url": "t/870986", "replies": 3, "last_reply_by": "raycool", "created": 1659708198, "last_modified": 1659708198, "last_touched": 1659751076 }
不然做客户端显示不了头像看着很不习惯:
删除指定的提醒 DELETE notifications/:notification_id 完整例子: DELETE api/v2/notifications/123456 Authorization: Bearer bd1f2c67-cc7f-48e3-a48a-e5b88b427146
接口返回内容:
<html><title>405: Method Not Allowed</title><body>405: Method Not Allowed</body></html>
是否在配置站点时禁用了 DELETE ?
]]>expiration - 可支持的值:259200 ,5184000 或者 15552000 ,即 30 天,60 天或者 180 天的秒数 完整例子: POST api/v2/tokens Authorization: Bearer bd1f2c67-cc7f-48e3-a48a-e5b88b427146 {"scope": "everything", "expiration": 259200}
这个示例有偏差,30 天的秒数是 2592000 。
另外,实测传入 5184000 会返回错误:Invalid expiration provided
]]>