Tanuki
======
[![Build Status](https://travis-ci.org/ZJvandeWeg/Tanuki.svg)](https://travis-ci.org/ZJvandeWeg/Tanuki) [![Inline docs](http://inch-ci.org/github/ZJvandeWeg/tanuki.svg)](http://inch-ci.org/github/ZJvandeWeg/tanuki)
Elixir wrapper for GitLab. You'll need your private token found under <Gitlab Instance URL>profile/account.
## How to use
This library depends on `HTTPoison`, thus at some point during previous to make some calls the your choosen GitLab endpoint, you should have started `HTTPoison`.
Then:
```elixir
# first you'll need your private token and create a %Tanuki.Client
iex> client = Tanuki.Client.new("PrivateToken", "https://customendpoint.tld/api/v3/")
%Tanuki.Client%{private_token: "PrivateToken", endpoint: "https://customendpoint.tld/api/v3/"}
iex> Tanuki.Users.Emails.create(client, %{email: "your@email.tld"})
# Response struct
```
All the API's have extensive documentation found on [HexDoc]([http://hexdocs.pm/tanuki/api-reference.html) and offcourse; [GitLab API docs](http://doc.gitlab.com/ce/api/).
Some endpoints are still missing, but will be added soon and be released in the 0.1.x releases.