Third-party API Request
Action type with which we can make a request to third party APIs and get or process that data.
This action is where we can configure third-party APIs(like public API) whose data can be used for another part of actions to process that particular function.
Configuration for third party API Request
For Headers and Body payloads values can be given in three types.
Constant values for headers, body payload can be configured from fireapis UI by default you will have the configuration as constant input
Endpoint type functions can be consumed in two methods GET and POST, if the POST method is used we can give a function with your payload.
From that payload, we can also add a configuration for headers or body payload in action to use the value from payload given to the function as below screens shot
Configure value from the payload
In above screenshot we have used
$payload.data.authorization_tokenwhere our function payload is as below json
$payloadrepresents the value source from the given payload
data.authorization_coderepresents the path from payload value should be taken
In this action, if we need to configure a value to be taken from a JSON, we can give it as a key separated with ".". Below is the example
If we need the name key value to be mapped, then the path will be user.name.