Skip to content

Commit f7de13d

Browse files
committed
清空历史记录 接口
1 parent 144ee86 commit f7de13d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

history.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package bilibili
2+
3+
import (
4+
"github.com/go-resty/resty/v2"
5+
)
6+
7+
// ClearHistory 清空历史记录
8+
func (c *Client) ClearHistory(param RemoveDynamicParam) error {
9+
const (
10+
method = resty.MethodPost
11+
url = "https://api.bilibili.com/x/v2/history/delete"
12+
)
13+
_, err := execute[any](c, method, url, param, fillCsrf(c))
14+
return err
15+
}

0 commit comments

Comments
 (0)