AliyunOss

Build Status Hex.pm

阿里云对象存储(OSS)API

Installation

Add aliyun_oss to your list of dependencies in mix.exs:

def deps do
[
{:aliyun_oss, "~> 0.6.0"}
]
end

Configuration

config :aliyun_oss,
endpoint: "oss-cn-shenzhen.aliyuncs.com",
access_key_id: "ALIYUN_ACCESS_KEY_ID",
access_key_secret: "ALIYUN_ACCESS_KEY_SECRET"

Or if you want to config them via run-time system environment variables:

config :aliyun_oss,
endpoint: {:system, "ALIYUN_ENDPOINT"},
access_key_id: {:system, "ALIYUN_ACCESS_KEY_ID"},
access_key_secret: {:system, "ALIYUN_ACCESS_KEY_SECRET"}

Documentation

https://hexdocs.pm/aliyun_oss

API List

参考阿里云官方文档