Skip to content

Latest commit

 

History

History
661 lines (458 loc) · 19.2 KB

DownloadApi.md

File metadata and controls

661 lines (458 loc) · 19.2 KB

OpenAPI\Client\DownloadApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
downloadGetExport() GET /download/e/{id} Returns a export file with specified id
downloadGetExportThumbnail() GET /download/e/{id}/thumbnail Returns export's thumbnail
downloadGetExports() GET /download/es/{archiveName} Returns a zip archive with selected ids
downloadGetLastSVGExport() GET /download/lastPreview/{reportId} returns export, that was created from report with specified id. INTERNAL USAGE ONLY!
downloadGetReport() GET /download/r/{id} Returns a prepared file with specified id
downloadGetReportThumbnail() GET /download/r/{id}/thumbnail Returns report's thumbnail
downloadGetReports() GET /download/rs/{archiveName} Returns a zip archive with selected files
downloadGetTemplate() GET /download/t/{id} Returns a Template file with specified id
downloadGetTemplateThumbnail() GET /download/t/{id}/thumbnail Returns template's thumbnail
downloadGetTemplates() GET /download/ts/{archiveName} Returns a zip archive with selected files

downloadGetExport()

downloadGetExport($id, $preview): \SplFileObject

Returns a export file with specified id

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$id = 'id_example'; // string | 
$preview = false; // bool | 

try {
    $result = $apiInstance->downloadGetExport($id, $preview);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadApi->downloadGetExport: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
preview bool [optional] [default to false]

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/octet-stream, application/pdf

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

downloadGetExportThumbnail()

downloadGetExportThumbnail($id): \SplFileObject

Returns export's thumbnail

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$id = 'id_example'; // string | 

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

Parameters

Name Type Description Notes
id string

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, image/png, image/jpeg

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

downloadGetExports()

downloadGetExports($archive_name, $file_ids, $folder_ids): \SplFileObject

Returns a zip archive with selected ids

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$archive_name = 'archive_name_example'; // string | name of the created archive
$file_ids = 'file_ids_example'; // string | ids separated with a ',' sign
$folder_ids = 'folder_ids_example'; // string | ids separated with a ',' sign

try {
    $result = $apiInstance->downloadGetExports($archive_name, $file_ids, $folder_ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadApi->downloadGetExports: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
archive_name string name of the created archive
file_ids string ids separated with a ',' sign [optional]
folder_ids string ids separated with a ',' sign [optional]

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/zip

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

downloadGetLastSVGExport()

downloadGetLastSVGExport($report_id): \SplFileObject

returns export, that was created from report with specified id. INTERNAL USAGE ONLY!

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$report_id = 'report_id_example'; // string | 

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

Parameters

Name Type Description Notes
report_id string

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/octet-stream

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

downloadGetReport()

downloadGetReport($id): \SplFileObject

Returns a prepared file with specified id

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$id = 'id_example'; // string | 

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

Parameters

Name Type Description Notes
id string

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/octet-stream

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

downloadGetReportThumbnail()

downloadGetReportThumbnail($id): \SplFileObject

Returns report's thumbnail

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$id = 'id_example'; // string | 

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

Parameters

Name Type Description Notes
id string

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, image/png, image/jpeg

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

downloadGetReports()

downloadGetReports($archive_name, $file_ids, $folder_ids): \SplFileObject

Returns a zip archive with selected files

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$archive_name = 'archive_name_example'; // string | name of the created archive
$file_ids = 'file_ids_example'; // string | ids separated with a ',' sign
$folder_ids = 'folder_ids_example'; // string | ids separated with a ',' sign

try {
    $result = $apiInstance->downloadGetReports($archive_name, $file_ids, $folder_ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadApi->downloadGetReports: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
archive_name string name of the created archive
file_ids string ids separated with a ',' sign [optional]
folder_ids string ids separated with a ',' sign [optional]

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/zip

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

downloadGetTemplate()

downloadGetTemplate($id): \SplFileObject

Returns a Template file with specified id

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$id = 'id_example'; // string | template id

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

Parameters

Name Type Description Notes
id string template id

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/octet-stream

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

downloadGetTemplateThumbnail()

downloadGetTemplateThumbnail($id): \SplFileObject

Returns template's thumbnail

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$id = 'id_example'; // string | 

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

Parameters

Name Type Description Notes
id string

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, image/png, image/jpeg

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

downloadGetTemplates()

downloadGetTemplates($archive_name, $file_ids, $folder_ids): \SplFileObject

Returns a zip archive with selected files

Example

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


// Configure HTTP basic authorization: ApiKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer (JWT) authorization: JWT
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\DownloadApi(
    // 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
);
$archive_name = 'archive_name_example'; // string | name of the created archive
$file_ids = 'file_ids_example'; // string | ids separated with a ',' sign
$folder_ids = 'folder_ids_example'; // string | ids separated with a ',' sign

try {
    $result = $apiInstance->downloadGetTemplates($archive_name, $file_ids, $folder_ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DownloadApi->downloadGetTemplates: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
archive_name string name of the created archive
file_ids string ids separated with a ',' sign [optional]
folder_ids string ids separated with a ',' sign [optional]

Return type

\SplFileObject

Authorization

ApiKey, JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, application/zip

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