Current section
Files
Jump to
Current section
Files
lib/ex_trello/api/actions.ex
defmodule ExTrello.API.Actions do
@moduledoc """
Module to wrap the Actions API endpoints.
reference: https://developers.trello.com/advanced-reference/action
"""
import ExTrello.API.Base
alias ExTrello.Parser
def action(id), do: action(id, [])
def action(id, options) when is_binary(id) and is_list(options) do
request(:get, "actions/#{id}", options)
|> Parser.parse_action
end
end