All URIs are relative to https://localhost:4993/api/v1
Method | HTTP request | Description |
---|---|---|
ReportsGet | GET /reports | Gets the list of reports. |
ReportsReportIdGet | GET /reports/{reportId} | Gets details about a specific report. |
ReportListResponse ReportsGet (string appId = null, string sort = null, int? offset = null, int? limit = null)
Gets the list of reports.
Returns the list of reports that the calling user is authorized to view. The response includes the title and other details about each report. The list can be filtered by a particular app, and is sorted in the order specified by the sort
parameter.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class ReportsGetExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new ReportsApi(nprintingApiClient);
var appId = appId_example; // string | The ID of the app to filter on. (optional)
var sort = sort_example; // string | A comma separated list of fields to be used for sorting the reports. Allowed field values are \"title\" and \"created\". Fields can be prefixed by \"+\" and \"-\" to indicate, respectively, ascending and descending order. Usage example: /reports?sort=+title,-created (optional)
var offset = 56; // int? | The number of entries to skip. Default is 0. (optional) (default to 0)
var limit = 56; // int? | The maximum number of entries to return. Default is 50. (optional) (default to 50)
try
{
// Gets the list of reports.
ReportListResponse result = apiInstance.ReportsGet(appId, sort, offset, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ReportsApi.ReportsGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
appId | string | The ID of the app to filter on. | [optional] |
sort | string | A comma separated list of fields to be used for sorting the reports. Allowed field values are "title" and "created". Fields can be prefixed by "+" and "-" to indicate, respectively, ascending and descending order. Usage example: /reports?sort=+title,-created | [optional] |
offset | int? | The number of entries to skip. Default is 0. | [optional] [default to 0] |
limit | int? | The maximum number of entries to return. Default is 50. | [optional] [default to 50] |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2005 ReportsReportIdGet (string reportId)
Gets details about a specific report.
Returns the details about the specified report specified by the reportId
parameter.
using System;
using System.Diagnostics;
using Qlik.NPrinting.Rest.Client.Api;
using Qlik.NPrinting.Rest.Client.Client;
using Qlik.NPrinting.Rest.Client.Model;
namespace Example
{
public class ReportsReportIdGetExample
{
public void main()
{
IAdSyncConfig adSyncconf = new AdSyncConfigTest();
var nprintingApiClient = NPrintingApiFactory.GetNPrintingApiClient(adSyncconf);
var apiInstance = new ReportsApi(nprintingApiClient);
var reportId = reportId_example; // string | The report ID.
try
{
// Gets details about a specific report.
ReportResponse result = apiInstance.ReportsReportIdGet(reportId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ReportsApi.ReportsReportIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
reportId | string | The report ID. |
Authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]