mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-08 06:32:27 +08:00
material add BatchGetMaterial (#258)
* material add BatchGetMaterial 1. fix material golint error 2. BatchGetMaterial use util.DecodeWithError check error Co-authored-by: hewen <hewen@liao.com>
This commit is contained in:
11
README.md
11
README.md
@@ -530,6 +530,17 @@ type Config struct {
|
||||
|
||||
[素材管理API](https://godoc.org/github.com/silenceper/wechat/material#Material)
|
||||
|
||||
### 批量获取永久素材
|
||||
|
||||
```go
|
||||
list, err := wc.GetMaterial().BatchGetMaterial(material.PermanentMaterialTypeNews, 0, 10)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
fmt.Println(list)
|
||||
```
|
||||
|
||||
## 小程序开发
|
||||
|
||||
获取小程序操作对象
|
||||
|
||||
Reference in New Issue
Block a user