# PublishApp.ReadApi

All URIs are relative to *https://doraemon.mammoth.io/api/v1/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**readReports**](ReadApi.md#readReports) | **GET** /reports | Read all reports in workspace
[**reportReportIdGet**](ReadApi.md#reportReportIdGet) | **GET** /report/{report_id} | Read one report


<a name="readReports"></a>
# **readReports**
> ReadAllReports readReports(body, X_ACCOUNT_ID)

Read all reports in workspace



### Example
```javascript
var PublishApp = require('publish_app');
var defaultClient = PublishApp.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new PublishApp.ReadApi();

var body = new PublishApp.ReadAllReports(); // ReadAllReports | Info about workspace.

var X_ACCOUNT_ID = 8.14; // Number | account id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.readReports(body, X_ACCOUNT_ID, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**ReadAllReports**](ReadAllReports.md)| Info about workspace. | 
 **X_ACCOUNT_ID** | **Number**| account id | 

### Return type

[**ReadAllReports**](ReadAllReports.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="reportReportIdGet"></a>
# **reportReportIdGet**
> ReadOneReport reportReportIdGet(reportId, X_ACCOUNT_ID)

Read one report



### Example
```javascript
var PublishApp = require('publish_app');
var defaultClient = PublishApp.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new PublishApp.ReadApi();

var reportId = 8.14; // Number | Info about workspace.

var X_ACCOUNT_ID = 8.14; // Number | account id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.reportReportIdGet(reportId, X_ACCOUNT_ID, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **reportId** | **Number**| Info about workspace. | 
 **X_ACCOUNT_ID** | **Number**| account id | 

### Return type

[**ReadOneReport**](ReadOneReport.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

