Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COS

Build Status Hex.pm Version

腾讯云对象存储 COS(Cloud Object Storage) Elixir SDK (XML API)

Installation

The package can be installed by adding tencent_cloud_cos to your list of dependencies in mix.exs:

def deps do
  [
    {:tencent_cloud_cos, "~> 0.1.0"}
  ]
end

Usage

First, set config:

config :tencent_cloud_cos,
  secret_id: "AKIDb************************DmNIJ",
  secret_key: "iV1oL**********************4JuFu"

After that, you can upload a file:

iex> COS.Object.put_from_file("https://bucket-1250000000.cos.ap-beijing.myqcloud.com",
 "example.txt", "./example.txt")

About

腾讯云对象存储 COS(Cloud Object Storage) Elixir SDK

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages