blob: 902a3a5eef2f81688732d91b31dd3efef92fcc32 (
plain)
1
2
3
4
5
6
7
8
9
|
defmodule Zendex.Ticket do
def list(connection) do
tickets_url = "/api/v2/tickets.json"
HTTPoison.get!(connection.base_url <> tickets_url, [{"Authorization", "Basic #{Base.encode64("#{connection.username}:#{connection.password}")}"}])
end
end
|