How to submit a HTTP Call POST using body with json
currently the HTTP Call is using params to pass a values, How can we pass a json using body to call HTTP POST?
-
Hey John, when you want to send application/json content type to an API, simply use these steps:
Body can me made with this code:
`$a = json_encode(array("foo"=>"bar"))`
- This variable a will go directly into Post Params of your HTTP action.
- Then in same HTTP action in workflow automation, make sure "Content-Type: application/json" is included.
That's it!
Please sign in to leave a comment.
Comments
1 comment