noob needs example of httpoison get using basic auth

1,892 views
Skip to first unread message

Bryan Webb

unread,
Mar 10, 2016, 9:29:41 PM3/10/16
to elixir-lang-talk
Just starting with elixir and chose httpoison as a rest client.

need a get sample using basic auth


Thanks
Bryan

Paulo Almeida

unread,
Mar 11, 2016, 1:08:29 AM3/11/16
to elixir-lang-talk
options = [hackney: [basic_auth: {"YOUR_USER", "YOUR_PASSWORD"}]]
HTTPoison.post(url, body, headers, options)
Reply all
Reply to author
Forward
0 new messages