HTTPoison Post Json

[Solved] HTTPoison Post Json | Elixir - Code Explorer | yomemimo.com
Question : json post request

Answered by : vtek-mikulek

HttpResponseMessage response = new HttpClient().PostAsync(url, stringContent).Result;

Source : | Last Update : Thu, 01 Sep 22

Question : HTTPoison post json

Answered by : tense-turtle-bspt2d8k5igu

url = "http://myurl"
body = Poison.encode!(%{ "call": "MyCall", "app_key": key, "param": [ %{ "page": page, "registres": registers, "filter": filter } ]
})
headers = [{"Content-type", "application/json"}]
HTTPoison.post(url, body, headers, [])

Source : https://stackoverflow.com/questions/37385314/httpoison-insert-body-parameters-in-elixir | Last Update : Wed, 14 Apr 21

Answers related to HTTPoison post json

Code Explorer Popular Question For Elixir