Lokalise APIv2 Elixir SDK

Elixir interface for the Lokalise APIv2.

View the Project on GitHub lokalise/elixir-lokalise-api




Payment cards

Fetch payment cards

Doc

{:ok, cards} = ElixirLokaliseApi.PaymentCards.all(page: 2, limit: 2)

card = hd(cards.items)
card.card_id

Fetch a single payment card

Doc

{:ok, card} = ElixirLokaliseApi.PaymentCards.find(card_id)

card.card_id

Create a payment card

Doc

data = %{
  number: "1212121212121212",
  cvc: 123,
  exp_month: 3,
  exp_year: 2030
}

{:ok, card} = ElixirLokaliseApi.PaymentCards.create(data)

card.card_id

Delete a payment card

Doc

{:ok, resp} = ElixirLokaliseApi.PaymentCards.delete(card_id)
resp.card_deleted