https://github.com/ug0/aliyun_oss
Aliyun OSS(阿里云对象存储) SDK for Elixir
https://github.com/ug0/aliyun_oss
aliyun aliyun-oss api elixir hex
Last synced: about 1 year ago
JSON representation
Aliyun OSS(阿里云对象存储) SDK for Elixir
- Host: GitHub
- URL: https://github.com/ug0/aliyun_oss
- Owner: ug0
- Created: 2018-11-23T06:05:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-30T15:58:31.000Z (about 3 years ago)
- Last Synced: 2025-03-24T12:04:39.214Z (about 1 year ago)
- Topics: aliyun, aliyun-oss, api, elixir, hex
- Language: Elixir
- Homepage: https://hex.pm/packages/aliyun_oss
- Size: 247 KB
- Stars: 14
- Watchers: 1
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# AliyunOss
[](https://travis-ci.org/ug0/aliyun_oss)
[](https://hex.pm/packages/aliyun_oss)
阿里云对象存储(OSS)API
## Installation
Add `aliyun_oss` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:aliyun_oss, "~> 2.0"}
]
end
```
## Usage
```elixir
defmodule MyApp.Oss do
alias Aliyun.Oss.Config
alias Aliyun.Oss.Bucket
def list_buckets(query_params \\ %{}) do
Bucket.list_buckets(config(), query_params)
end
# encapsulate more API that you required ...
def config() do
:my_app
|> Application.fetch_env!(MyApp.Oss)
|> Config.new!()
end
end
# In the config/runtime.exs
config :my_app, MyApp.Oss,
endpoint: "...",
access_key_id: "...",
access_key_secret: "..."
```
## Documentation
[https://hexdocs.pm/aliyun_oss](https://hexdocs.pm/aliyun_oss)
### API List
更多请参考[阿里云官方文档](https://help.aliyun.com/document_detail/31948.html?spm=a2c4g.11186623.6.1037.520869cbKcHFcL)
## License
MIT