# Functions
CallApi is the main function for the action
- action: api
description: "This is an example of calling an API POST request."
config:
method: POST
url: https://gorest.co.in/public/v2/users
body_type: raw
body: |
{"name":"Agent Smith", "gender":"male", "email":"[email protected]", "status":"active"}
header_Content-Type: application/json
header_Authorization: "Bearer {{get_param `token`}}"
result_action: "js"
result_js: |
function ActionResults(m,result){
var obj=JSON.parse(result);
store_value("api_result","user_id",obj.id);
console(result);
return true;
}
*/.
GetAction returns the action for the target.
# Constants
Constants for the body data type.
Constants for the body data type.
Constants for the body data type.
Constants for the body data type.
Constants for the body data type.