Skip to content

Latest commit

 

History

History
133 lines (88 loc) · 4.59 KB

File metadata and controls

133 lines (88 loc) · 4.59 KB

Dangl\AVACloud\DatanormConversionApi

All URIs are relative to https://avacloud-api.dangl-it.com, except if the operation defines another base path.

Method HTTP request Description
datanormConversionConvertToAva() POST /conversion/datanorm/ava Converts Datanorm files to Dangl.AVA projects
datanormConversionConvertToFlatAva() POST /conversion/datanorm/flat-ava Converts Datanorm files to Dangl.AVA projects

datanormConversionConvertToAva()

datanormConversionConvertToAva($datanormFile, $removePlainTextLongTexts, $removeHtmlLongTexts): \Dangl\AVACloud\Model\ProjectDto

Converts Datanorm files to Dangl.AVA projects

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Dangl.Identity
$config = Dangl\AVACloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');



$apiInstance = new Dangl\AVACloud\Api\DatanormConversionApi(
    // 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(),
    $config
);
$datanormFile = '/path/to/file.txt'; // \SplFileObject | The input file
$removePlainTextLongTexts = True; // bool | If set to true, plain text long texts will be removed from the output to reduce response sizes
$removeHtmlLongTexts = True; // bool | If set to true, html long texts will be removed from the output to reduce response sizes

try {
    $result = $apiInstance->datanormConversionConvertToAva($datanormFile, $removePlainTextLongTexts, $removeHtmlLongTexts);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DatanormConversionApi->datanormConversionConvertToAva: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
datanormFile \SplFileObject**\SplFileObject** The input file [optional]
removePlainTextLongTexts bool If set to true, plain text long texts will be removed from the output to reduce response sizes [optional]
removeHtmlLongTexts bool If set to true, html long texts will be removed from the output to reduce response sizes [optional]

Return type

\Dangl\AVACloud\Model\ProjectDto

Authorization

Dangl.Identity

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/vnd.com.dangl-it.ProjectDto.v1+json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

datanormConversionConvertToFlatAva()

datanormConversionConvertToFlatAva($datanormFile): \Dangl\AVACloud\Model\FlatAvaProject

Converts Datanorm files to Dangl.AVA projects

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Dangl.Identity
$config = Dangl\AVACloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');



$apiInstance = new Dangl\AVACloud\Api\DatanormConversionApi(
    // 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(),
    $config
);
$datanormFile = '/path/to/file.txt'; // \SplFileObject | The input file

try {
    $result = $apiInstance->datanormConversionConvertToFlatAva($datanormFile);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DatanormConversionApi->datanormConversionConvertToFlatAva: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
datanormFile \SplFileObject**\SplFileObject** The input file [optional]

Return type

\Dangl\AVACloud\Model\FlatAvaProject

Authorization

Dangl.Identity

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]