Interessante Bibliotheken
HTTP-Requests / JSON
Bibliotheken
BeispielBeispiele
tesla
defmodule DatesAPI do
use Tesla
plug Tesla.Middleware.BaseUrl, "https://api.datesapi.net"
plug Tesla.Middleware.JSON
def get_next_month() do
get("/next-month")
end
end
httpoison
"https://api.datesapi.net/today"
|> HTTPoison.get!()
|> Map.get(:body)
|> Poison.decode!()
|> Map.get("result")
JSON
Bibliotheken
- jason - A blazing fast JSON parser and generator in pure Elixir (hex, Github)
- poison - An incredibly fast, pure Elixir JSON library (hex, Github)