Releases: yammine/ex_trello
Releases · yammine/ex_trello
Dependency update
Version 1.1
- HTTPotion -> HTTPoison (ibrowse to hackney)
- For more than one reason, but the biggest was that hackney has support for form/multipart
- File attachment for cards
Update for Elixir 1.4 compatibility
- Partial wrapping of Trello Notifications API
- One step closer to world domination
1.0 - Breaking changes!
- Instead of raising errors we now return tuples from our library functions.
{:ok, boards} = ExTrello.boards()
{:error, %ExTrello.Error{code: code, message: message}} = ExTrello.get("/a_path_that_doesnt_exist")
This is a breaking change for anyone using a `0.x.x` version in their applications.
- Dialyzer errors have been fixed and only warnings from other libraries are emitted now.
- Checklists model has been added and some convenience functions along with it.
ExTrello.API.Lists implement list show, create, and update
0.5.0 Added API.Lists module to wrap list endpoints
Convenience
Enable bare requests to be made from ExTrello:
- get, post, put, delete requests can be constructed using simple function calls to
- signed parameter values removed from query params (this was bad, we were putting our oauth credentials in the query string...doh!)
- correctly use :headers option for HTTPotion
- correctly use request body when using post, put, delete
Removed dependency on `tim/erlang-oauth`
- Edit card has been fixed & should behave appropriately.
- The new OAuth 1.0 library is packaged with this library now so no need to explicitly declare it as a dependency.
Fetch & Comment on Cards
Fetch all cards of a board: ExTrello.board_cards/1
Fetch individual card: ExTrello.card/1
Fetch individual action: ExTrello.action/1
Technically fetching the cards of a board was always possible with ExTrello.board("board_id_here", cards: "all")
but I feel users will probably want convenient ways to grab just the nested/associated resources without getting the parent.
Will continue to broaden the API surface this way unless someone can argue a good reason not to 😄
Create & Edit Boards
Boards can now be created & edited.
References
Fetch Boards
Authenticated clients may now retrieve their boards on Trello (or another username's visible boards) via:
ExTrello.boards(opts \\ []) & ExTrello.boards("username", opts)