Pinata 🪅

Build Statushex.pm versionhex.pm downloadsLicense

Adapter for pinata.cloud

Installation

def deps do
  [
    {:ex_pinata, "~> 1.0.0"}
  ]
end

To start using adapter you should provide config:

config :pinata,
  api_key: "YOUR_PINATA_API_KEY",
  api_token: "YOUR_PINATA_API_KEY

Usage

content = File.read!("/path/to/some/file")
{:ok, file} = Pinata.pin_file(content, "my_file")