SHOUTCLOUD / SHOUTCLOUD_NODE

THE MOST PROMISING ALL CAPS WEBSCALE EVENT LOOP AS A SERVICE
65 stars 3 forks source link

httpie instead of curl #3

Open a-x- opened 9 years ago

a-x- commented 9 years ago
http HTTP://API.SHOUTCLOUD.IO/V1/SHOUT input='hello world'

image

As a negative side: prerequisite installation:

brew install httpie
a-x- commented 9 years ago

vs:

curl -X POST \
    -d '{"INPUT": "hello world"}' \
    -H 'Content-Type: application/json' \
    HTTP://API.SHOUTCLOUD.IO/V1/SHOUT

{ "INPUT":"hello world",
  "OUTPUT":"HELLO WORLD" }
a-x- commented 9 years ago

httpie repo