[![Build Status](https://travis-ci.org/sger/elixir_dropbox.svg?branch=master)](https://travis-ci.org/sger/elixir_dropbox)
[![Coverage Status](https://coveralls.io/repos/github/sger/elixir_dropbox/badge.svg?branch=master)](https://coveralls.io/github/sger/elixir_dropbox?branch=master)
# ElixirDropbox
Simple Dropbox v2 client for Elixir.
work in progress
## Usage
```sh
$ iex -S mix
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Interactive Elixir (1.3.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> client = ElixirDropbox.Client.new("TOKEN")
%ElixirDropbox.Client{access_token: "TOKEN",
client_id: nil}
iex(2)> ElixirDropbox.Users.current_account(client)
iex(3)> ElixirDropbox.Users.current_account_to_struct(client)
iex(4)> ElixirDropbox.Files.create_folder(client, "/test")
iex(5)> ElixirDropbox.Files.create_folder_to_struct(client, "/test")
```
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add elixir_dropbox to your list of dependencies in `mix.exs`:
def deps do
[{:elixir_dropbox, "~> 0.0.6"}]
end
2. Ensure elixir_dropbox is started before your application:
def application do
[applications: [:elixir_dropbox]]
end
## Testing
```sh
$ export DROPBOX_ACCESS_TOKEN=
$ mix test
```
## Documentation
[https://hexdocs.pm/elixir_dropbox/0.0.6](https://hexdocs.pm/elixir_dropbox/0.0.6)
## TODO
- [ ] adding structs for responses
- [ ] documentation
# License
MIT