All URIs are relative to https://localhost:20000/api/3.1
Method | HTTP request | Description |
---|---|---|
fetchRemoteDataActionForm | POST /data_actions/form | Fetch Remote Data Action Form |
performDataAction | POST /data_actions | Send a Data Action |
\Swagger\Client\Model\DataActionForm fetchRemoteDataActionForm($body)
Fetch Remote Data Action Form
For some data actions, the remote server may supply a form requesting further user input. This endpoint takes a data action, asks the remote server to generate a form for it, and returns that form to you for presentation to the user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\DataActionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \stdClass; // object | Data Action Request
try {
$result = $apiInstance->fetchRemoteDataActionForm($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataActionApi->fetchRemoteDataActionForm: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | object | Data Action Request |
\Swagger\Client\Model\DataActionForm
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\DataActionResponse performDataAction($body)
Send a Data Action
Perform a data action. The data action object can be obtained from query results, and used to perform an arbitrary action.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\DataActionApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\DataActionRequest(); // \Swagger\Client\Model\DataActionRequest | Data Action Request
try {
$result = $apiInstance->performDataAction($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DataActionApi->performDataAction: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\DataActionRequest | Data Action Request |
\Swagger\Client\Model\DataActionResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]