|
| 1 | +# CyberSource.DownloadDTDApi |
| 2 | + |
| 3 | +All URIs are relative to *https://apitest.cybersource.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**getDTDV2**](DownloadDTDApi.md#getDTDV2) | **GET** /dtds/{reportDefinitionNameVersion} | Used to download DTDs for reports |
| 8 | + |
| 9 | + |
| 10 | +<a name="getDTDV2"></a> |
| 11 | +# **getDTDV2** |
| 12 | +> getDTDV2(reportDefinitionNameVersion) |
| 13 | +
|
| 14 | +Used to download DTDs for reports |
| 15 | + |
| 16 | +Downloads DTDs for reports on no-auth. |
| 17 | + |
| 18 | +### Example |
| 19 | +```javascript |
| 20 | +var CyberSource = require('CyberSource'); |
| 21 | + |
| 22 | +var apiInstance = new CyberSource.DownloadDTDApi(); |
| 23 | + |
| 24 | +var reportDefinitionNameVersion = "reportDefinitionNameVersion_example"; // String | Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1 |
| 25 | + |
| 26 | + |
| 27 | +var callback = function(error, data, response) { |
| 28 | + if (error) { |
| 29 | + console.error(error); |
| 30 | + } else { |
| 31 | + console.log('API called successfully.'); |
| 32 | + } |
| 33 | +}; |
| 34 | +apiInstance.getDTDV2(reportDefinitionNameVersion, callback); |
| 35 | +``` |
| 36 | + |
| 37 | +### Parameters |
| 38 | + |
| 39 | +Name | Type | Description | Notes |
| 40 | +------------- | ------------- | ------------- | ------------- |
| 41 | + **reportDefinitionNameVersion** | **String**| Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1 | |
| 42 | + |
| 43 | +### Return type |
| 44 | + |
| 45 | +null (empty response body) |
| 46 | + |
| 47 | +### Authorization |
| 48 | + |
| 49 | +No authorization required |
| 50 | + |
| 51 | +### HTTP request headers |
| 52 | + |
| 53 | + - **Content-Type**: application/json;charset=utf-8 |
| 54 | + - **Accept**: application/xml-dtd |
| 55 | + |
0 commit comments