View Source COS (tencent_cloud_cos v0.1.1)

腾讯云对象存储 COS(Cloud Object Storage) - 腾讯云文档

Link to this section Summary

Functions

获取配置数据

Link to this section Functions

@spec config() :: map()

获取配置数据

示例

示例

在你的 config.exs 中配置:

config :tencent_cloud_cos,
  secret_id: "AKIDb************************DmNIJ",
  secret_key: "iV1oL**********************4JuFu",
  http_client: [
    adapter: Tesla.Adapter.Hackney
  ]

如果需要,您可以获取配置:

COS.config()[:http_client]