素材管理

获取素材操作实例

oa := wc.GetOfficialAccount(cfg)
m:=oa.GetMaterial()

新增永久图文素材

AddNews(articles []*Article)

新增其他类型永久素材(除视频)

AddMaterial(mediaType MediaType, filename string)

新增永久视频素材

AddVideo(filename, title, introduction string)

删除永久素材

DeleteMaterial(mediaID string)

批量获取永久素材

BatchGetMaterial(permanentMaterialType PermanentMaterialType, offset, count int64)

获取永久图文素材

GetNews(id string) ([]*Article, error)
Copyright © Wechat SDK For Go 2020 all right reserved,powered by Gitbook该文件修订时间: 2020-05-30 08:12:07

results matching ""

    No results matching ""