Skip to content

Instantly share code, notes, and snippets.

@pareeohnos
Created September 22, 2016 13:16
Show Gist options
  • Save pareeohnos/9578223e431ff7df6205ad339603469f to your computer and use it in GitHub Desktop.
Save pareeohnos/9578223e431ff7df6205ad339603469f to your computer and use it in GitHub Desktop.
data = %MyStruct{
arg1: "val",
arg2: "val"
}
HTTPoison.start
HTTPoison.post("http://localhost:8200/v1/post/#{datasource}", Poison.encode(data))
HTTPoison.stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment