blob: 7c532eb2e1317ef92715f53c4ef5c6bf6b1dc775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
defmodule Zendex.Connection do
@type t :: %{base_url: String.t, authentication: binary}
@spec set_up(String.t, String.t, String.t) :: t
def set_up(base_url, username, password) do
authentication = Base.encode64("#{username}:#{password}")
%{base_url: base_url, authentication: authentication}
end
end
|