WeChat.Material.stream_get_material

You're seeing just the function stream_get_material, go back to WeChat.Material module for more information.
Link to this function

stream_get_material(client, type, count \\ 20)

Specs

stream_get_material(WeChat.client(), material_type(), material_count()) ::
  Enumerable.t()

获取素材列表(stream) - 官方文档

在新增了永久素材后,开发者可以分类型获取永久素材的列表。

请注意:

  • 获取永久素材的列表,也包含公众号在公众平台官网素材管理模块中新建的图文消息、语音、视频等素材
  • 临时素材无法通过本接口获取
  • 调用该接口需https协议

参数说明

  • type: 素材的类型,图片(image)、视频(video)、语音 (voice)、图文(news)
  • count: 返回素材的数量,取值在1到20之间