Answers for "display json response from post request"

2

send json body in get request

// please don't. use query or route params instead.
Posted by: Guest on July-15-2021
0

HTTPoison post json

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, [])
Posted by: Guest on April-07-2021

Code answers related to "display json response from post request"

Browse Popular Code Answers by Language