# AbacusApi.TaskApi

All URIs are relative to *https://localhost/AizenGlobal/Abacus/1.1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**tasksGet**](TaskApi.md#tasksGet) | **GET** /tasks/ | Get list of all tasks
[**tasksIdAbortPost**](TaskApi.md#tasksIdAbortPost) | **POST** /tasks/{id}/abort/ | Abort task
[**tasksIdGet**](TaskApi.md#tasksIdGet) | **GET** /tasks/{id}/ | Get task info


<a name="tasksGet"></a>
# **tasksGet**
> InlineResponse20010 tasksGet()

Get list of all tasks

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.TaskApi();

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

### Parameters
This endpoint does not need any parameter.

### Return type

[**InlineResponse20010**](InlineResponse20010.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="tasksIdAbortPost"></a>
# **tasksIdAbortPost**
> tasksIdAbortPost(id)

Abort task

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.TaskApi();

var id = 56; // Number | ID of task to abort


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.tasksIdAbortPost(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of task to abort | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="tasksIdGet"></a>
# **tasksIdGet**
> InlineResponse20011 tasksIdGet(id)

Get task info

### Example
```javascript
var AbacusApi = require('abacus_api');

var apiInstance = new AbacusApi.TaskApi();

var id = 56; // Number | ID of task to get info of


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**| ID of task to get info of | 

### Return type

[**InlineResponse20011**](InlineResponse20011.md)

### Authorization

No authorization required

### HTTP request headers

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

