ex_trello v1.0.0 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"}}]}
iex> ExTrello.Utils.snake_case_keys body %{date_last_activity: %{potato_skins: “asdf”, something_else: %{hey_there: “sup”}}, root_map: “right here”, some_list: [%{keys_in_here: "too"}, %{cant_believe: %{this_is_happening: "it is tho"}}]}