📜  httpie post json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:07.610000             🧑  作者: Mango

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