Human friendly WordPress Automation
The Rest API call and Webhook actions share most of their settings and behaviour. The major difference between them is the way parameters are passed to the target URL. The Webhook action is a little bit easier to use for novice users because it’s guiding you to compose the request parameters. The REST API call action is more free form and allows an experienced user to write the request payload manually.
The http header Content-Type will be set depending on the combination of the method field and the data format field:
The webhook action lets you assign a list of parameters by clicking the Add key/value pair button:
You can add as many parameters as wanted. Remove unwanted parameters with the minus (-) button to the right of each row. Add as many parameters as needed:
In a GET request the parameters will be sent as url parameters, added to the URL using ? and & as separators.
In a POST request the parameters will be sent in the request body (payload). The data format field determines how the parameters are sent, either JSON or x-www-form/urlencoded.
If the webook call returns a JSON formatted value, WunderAutomation makes this value available via a “hidden” parameter named “webhook.response”. You can use this value in subsequent actions using normal placeholder with this name:
Read more about how to use returned JSON data here.
The REST Api call action lets you compose both the URL and the request payload manually. Where the Webhook action UI helps you create a list of parameters, the REST API Call action lets you define these manually.
The Content-Type header is not set.
Note that you are responsible for writing / composing the request payload in the correct format in the request body field. WunderAutomation does not attempt to reformat the content based on the data format indicated in the Data format field.
If the REST Api call returns a JSON formatted value, WunderAutomation makes this value available via a “hidden” parameter named “webhook.response”. You can use this value in subsequent actions using normal placeholder with this name.
Powered by BetterDocs
Your email address will not be published. Required fields are marked *
Yes, sign me up for informational and marketing emails from wundermatics.com
Save my name, email, and website in this browser for the next time I comment.