Script Integration - Result
Script result values may be obtained by calling the endpoint directly.
|GET, POST||https://script.anura.io/result.json||HTTPS recommended|
// define parameters
$params = array();
$params["instance"] = yourAssignedInstanceId;
$params["id"] = "yourResponseId";
// setup and initialize curl
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://script.anura.io/result.json?".http_build_query($params));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// perform the request
$response = curl_exec($curl);
// close the curl connection
// continue with your custom result handler...
|instance||integer||Your instance ID.|
|id||string||The response ID that is used to request the result from Anura's servers.|
|exid||string||The unique external tracking ID, declared by you, that is used to query the result from Anura's servers.||Send "exid" instead of "id" when utilizing the exid parameter.|
While we strive to have results available within milliseconds, in worst case scenarios, some results may take longer. Therefore, it is okay to perform multiple queries for a response ID that is not found.
Response ID results will be available for 15 minutes and are removed immediately after a successfully query.
|good||The visitor has passed our tests and appears to be trustworthy.|
|warn||There are aspects about the visitor that raise concerns. However, we can not say for certain they are bad. It is your decision how to interpret this value.|
|bad||The visitor has failed our testing and should be considered untrustworthy.|
Please refer to our script result definitions documentation for more information on these values.
Rule Set Values
The "rule_sets" array requires "return rule sets" to be enabled. Talk to support about enabling or disabling the return rule sets feature.
The "invalid_traffic_type" string requires "return invalid traffic type" to be enabled. Talk to support about enabling or disabling the return invalid traffic type feature.
Please refer to our rule set definitions documentation for more information on these values.