Elixir interface for the Lokalise APIv2.
View the Project on GitHub lokalise/elixir-lokalise-api
{:ok, cards} = ElixirLokaliseApi.PaymentCards.all(page: 2, limit: 2)
card = hd(cards.items)
card.card_id
{:ok, card} = ElixirLokaliseApi.PaymentCards.find(card_id)
card.card_id
data = %{
number: "1212121212121212",
cvc: 123,
exp_month: 3,
exp_year: 2030
}
{:ok, card} = ElixirLokaliseApi.PaymentCards.create(data)
card.card_id
{:ok, resp} = ElixirLokaliseApi.PaymentCards.delete(card_id)
resp.card_deleted