ex_trello v0.2.1 ExTrello.Utils
A collection of helpful utility functions.
Summary
Functions
Will parse over any JSON response from the Trello API & snake case any camelCased keys (also convert them to atoms)
Functions
Will parse over any JSON response from the Trello API & snake case any camelCased keys (also convert them to atoms)
Example
body = %{"dateLastActivity" => %{ potatoSkins: "asdf", somethingElse: %{ "heyThere" => "sup"}}, rootMap: "right here", someList: [%{keysInHere: "too"}, %{cantBelieve: %{thisIsHappening: "it is tho"}}]}
ExTrello.Utils.snake_case_keys(body)
%{date_last_activity: %{potato_skins: "asdf", something_else: %{hey_there: "sup"}}, root_map: "right here"}