Thanks everyone! Adding `-H "Content-Type: application/json"` and `-v` worked—turns out the API was returning a 400 error silently.
Now I’m seeing the post output of an api using curl api properly. Also, `jq` is a great suggestion—just installed it and it’s way cleaner.
One follow-up: If the API requires OAuth, what’s the best way to handle that in curl? Just add the token in the headers?
Now I’m seeing the post output of an api using curl api properly. Also, `jq` is a great suggestion—just installed it and it’s way cleaner.
One follow-up: If the API requires OAuth, what’s the best way to handle that in curl? Just add the token in the headers?
