# ProWritingAidApi.SummaryApi
All URIs are relative to *https://localhost:5004*
Method | HTTP request | Description
------------- | ------------- | -------------
[**get**](SummaryApi.md#get) | **GET** /api/async/summary/result/{taskId} | Tries to get the result of a request using the task id of the request
[**post**](SummaryApi.md#post) | **POST** /api/async/summary | Gets the summary analysis of a document
# **get**
> AsyncResponseSummaryAnalysisResponse get(taskId)
Tries to get the result of a request using the task id of the request
### Example
```javascript
var ProWritingAidApi = require('pro_writing_aid_api');
var defaultClient = ProWritingAidApi.ApiClient.instance;
// Configure API key authorization: licenseCode
var licenseCode = defaultClient.authentications['licenseCode'];
licenseCode.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//licenseCode.apiKeyPrefix = 'Token';
var apiInstance = new ProWritingAidApi.SummaryApi();
var taskId = "taskId_example"; // String |
apiInstance.get(taskId).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**taskId** | **String**| |
### Return type
[**AsyncResponseSummaryAnalysisResponse**](AsyncResponseSummaryAnalysisResponse.md)
### Authorization
[licenseCode](../README.md#licenseCode)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, text/json
# **post**
> AsyncResponseSummaryAnalysisResponse post(requestp)
Gets the summary analysis of a document
### Example
```javascript
var ProWritingAidApi = require('pro_writing_aid_api');
var defaultClient = ProWritingAidApi.ApiClient.instance;
// Configure API key authorization: licenseCode
var licenseCode = defaultClient.authentications['licenseCode'];
licenseCode.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//licenseCode.apiKeyPrefix = 'Token';
var apiInstance = new ProWritingAidApi.SummaryApi();
var requestp = new ProWritingAidApi.SummaryAnalysisRequest(); // SummaryAnalysisRequest |
apiInstance.post(requestp).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**requestp** | [**SummaryAnalysisRequest**](SummaryAnalysisRequest.md)| |
### Return type
[**AsyncResponseSummaryAnalysisResponse**](AsyncResponseSummaryAnalysisResponse.md)
### Authorization
[licenseCode](../README.md#licenseCode)
### HTTP request headers
- **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
- **Accept**: application/json, text/json