Created
September 22, 2016 13:16
-
-
Save pareeohnos/9578223e431ff7df6205ad339603469f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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