📜  HTTPoison post json - Elixir 代码示例

📅  最后修改于: 2022-03-11 14:48:01.910000             🧑  作者: Mango

代码示例1
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, [])