README.md

# Pinata 🪅
[![Build Status](https://github.com/m1ome/ex_pinata/workflows/tests/badge.svg)](https://github.com/m1ome/ex_pinata/actions)
[![hex.pm version](https://img.shields.io/hexpm/v/ex_pinata.svg)](https://hex.pm/packages/ex_pinata)
[![hex.pm downloads](https://img.shields.io/hexpm/dt/ex_pinata.svg)](https://hex.pm/packages/ex_pinata)
[![License](https://img.shields.io/hexpm/l/exvcr.svg)](http://opensource.org/licenses/MIT)

Adapter for [pinata.cloud](https://www.pinata.cloud/)

## Installation

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

To start using adapter you should provide config:
```elixir
config :pinata,
  api_key: "YOUR_PINATA_API_KEY",
  api_token: "YOUR_PINATA_API_KEY
```

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