Skip to content

Latest commit

 

History

History
103 lines (82 loc) · 3.48 KB

File metadata and controls

103 lines (82 loc) · 3.48 KB

Org.OpenAPITools.Api.SecureReportsApi

All URIs are relative to https://api.anddone.com

Method HTTP request Description
SecureReportsDownloadsPost POST /secure/reports/downloads This API will add system report.

SecureReportsDownloadsPost

void SecureReportsDownloadsPost (string xApiKey, string xAppKey, float xVersion, string origin, ReportDownloadRequest? reportDownloadRequest = null)

This API will add system report.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class SecureReportsDownloadsPostExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://api.anddone.com";
            var apiInstance = new SecureReportsApi(config);
            var xApiKey = "xApiKey_example";  // string | an authorization header
            var xAppKey = "xAppKey_example";  // string | an authorization header
            var xVersion = 8.14D;  // float | x-version
            var origin = "origin_example";  // string | origin
            var reportDownloadRequest = new ReportDownloadRequest?(); // ReportDownloadRequest? | ReportDownloadRequest (optional) 

            try
            {
                // This API will add system report.
                apiInstance.SecureReportsDownloadsPost(xApiKey, xAppKey, xVersion, origin, reportDownloadRequest);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling SecureReportsApi.SecureReportsDownloadsPost: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the SecureReportsDownloadsPostWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

try
{
    // This API will add system report.
    apiInstance.SecureReportsDownloadsPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, reportDownloadRequest);
}
catch (ApiException e)
{
    Debug.Print("Exception when calling SecureReportsApi.SecureReportsDownloadsPostWithHttpInfo: " + e.Message);
    Debug.Print("Status Code: " + e.ErrorCode);
    Debug.Print(e.StackTrace);
}

Parameters

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float x-version
origin string origin
reportDownloadRequest ReportDownloadRequest? ReportDownloadRequest [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: text/csv

HTTP response details

Status code Description Response headers
200 Successful CSV file download -
404 Not Found -
500 Server Error -

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