Created
May 28, 2020 03:29
-
-
Save causztic/fe960123cf5e1d96874e885a4c5b4160 to your computer and use it in GitHub Desktop.
HTTParty Post examples
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
HTTParty.post( | |
"url", | |
{ | |
headers: { "Content-Type" => "application/json " }, | |
query: { api_key: "some api key" }, | |
body: { some_data: "value" } | |
}.to_json | |
) | |
HTTParty.post( | |
"url", | |
body: { some_data: "value" } | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment