Tasker API

Default

createTask

Task creation

Creates a new task. By default the task is in `todo` state.


/task

Usage and SDK Samples

curl -X POST "http://api.tasker.ovh/1.0.0/task"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String title = title_example; // String | A title of the task
        String description = description_example; // String | A description of the task
        String asignee = asignee_example; // String | A name of person asigned to the task
        try {
            apiInstance.createTask(title, description, asignee);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String title = title_example; // String | A title of the task
        String description = description_example; // String | A description of the task
        String asignee = asignee_example; // String | A name of person asigned to the task
        try {
            apiInstance.createTask(title, description, asignee);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createTask");
            e.printStackTrace();
        }
    }
}
String *title = title_example; // A title of the task
String *description = description_example; // A description of the task (optional)
String *asignee = asignee_example; // A name of person asigned to the task (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Task creation
[apiInstance createTaskWith:title
    description:description
    asignee:asignee
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var title = title_example; // {String} A title of the task

var opts = { 
  'description': description_example, // {String} A description of the task
  'asignee': asignee_example // {String} A name of person asigned to the task
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createTask(title, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createTaskExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var title = title_example;  // String | A title of the task
            var description = description_example;  // String | A description of the task (optional) 
            var asignee = asignee_example;  // String | A name of person asigned to the task (optional) 

            try
            {
                // Task creation
                apiInstance.createTask(title, description, asignee);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$title = title_example; // String | A title of the task
$description = description_example; // String | A description of the task
$asignee = asignee_example; // String | A name of person asigned to the task

try {
    $api_instance->createTask($title, $description, $asignee);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $title = title_example; # String | A title of the task
my $description = description_example; # String | A description of the task
my $asignee = asignee_example; # String | A name of person asigned to the task

eval { 
    $api_instance->createTask(title => $title, description => $description, asignee => $asignee);
};
if ($@) {
    warn "Exception when calling DefaultApi->createTask: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
title = title_example # String | A title of the task
description = description_example # String | A description of the task (optional)
asignee = asignee_example # String | A name of person asigned to the task (optional)

try: 
    # Task creation
    api_instance.create_task(title, description=description, asignee=asignee)
except ApiException as e:
    print("Exception when calling DefaultApi->createTask: %s\n" % e)

Parameters

Query parameters
Name Description
title*
String
A title of the task
Required
description
String
A description of the task
asignee
String
A name of person asigned to the task

Responses

Status: 200 - Creation succeeded

Status: 400 - Task not created due to bad arguments

Status: 500 - Task not created due to internal system error


deleteTask

Delete task

Permanently deletes task with given id


/task/{taskid}

Usage and SDK Samples

curl -X DELETE "http://api.tasker.ovh/1.0.0/task/{taskid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        UUID taskid = ; // UUID | 
        try {
            apiInstance.deleteTask(taskid);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        UUID taskid = ; // UUID | 
        try {
            apiInstance.deleteTask(taskid);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTask");
            e.printStackTrace();
        }
    }
}
UUID *taskid = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Delete task
[apiInstance deleteTaskWith:taskid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var taskid = ; // {UUID} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTask(taskid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTaskExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var taskid = new UUID(); // UUID | 

            try
            {
                // Delete task
                apiInstance.deleteTask(taskid);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$taskid = ; // UUID | 

try {
    $api_instance->deleteTask($taskid);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $taskid = ; # UUID | 

eval { 
    $api_instance->deleteTask(taskid => $taskid);
};
if ($@) {
    warn "Exception when calling DefaultApi->deleteTask: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
taskid =  # UUID | 

try: 
    # Delete task
    api_instance.delete_task(taskid)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteTask: %s\n" % e)

Parameters

Path parameters
Name Description
taskid*
UUID (uuid)
Required

Responses

Status: 200 - Deletion suceeded

Status: 500 - Task not deleted due to internal system error


findArchived

List tasks in archived state

Lists all tasks which are in archived state


/task/archived

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/archived"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findArchived();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findArchived");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findArchived();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findArchived");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List tasks in archived state
[apiInstance findArchivedWithCompletionHandler: 
              ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findArchived(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findArchivedExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // List tasks in archived state
                array[TaskInfo] result = apiInstance.findArchived();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findArchived: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->findArchived();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findArchived: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->findArchived();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findArchived: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # List tasks in archived state
    api_response = api_instance.find_archived()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findArchived: %s\n" % e)

Parameters

Responses

Status: 200 - A list of all tasks in archived state

Status: 500 - Unexpected error


findDone

List tasks in done state

Lists all tasks which are in done state


/task/done

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/done"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findDone();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findDone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findDone();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findDone");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List tasks in done state
[apiInstance findDoneWithCompletionHandler: 
              ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findDone(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findDoneExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // List tasks in done state
                array[TaskInfo] result = apiInstance.findDone();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findDone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->findDone();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findDone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->findDone();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findDone: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # List tasks in done state
    api_response = api_instance.find_done()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findDone: %s\n" % e)

Parameters

Responses

Status: 200 - A list of all tasks in done state

Status: 500 - Unexpected error


findProgress

List tasks in progress state

Lists all tasks which are in progress state


/task/progress

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/progress"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findProgress();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findProgress");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findProgress();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findProgress");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List tasks in progress state
[apiInstance findProgressWithCompletionHandler: 
              ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findProgress(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findProgressExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // List tasks in progress state
                array[TaskInfo] result = apiInstance.findProgress();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findProgress: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->findProgress();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findProgress: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->findProgress();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findProgress: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # List tasks in progress state
    api_response = api_instance.find_progress()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findProgress: %s\n" % e)

Parameters

Responses

Status: 200 - A list of all tasks in progress state

Status: 500 - Unexpected error


findReview

List tasks in review state

Lists all tasks which are in review state


/task/review

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/review"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findReview();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findReview();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findReview");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List tasks in review state
[apiInstance findReviewWithCompletionHandler: 
              ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findReview(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findReviewExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // List tasks in review state
                array[TaskInfo] result = apiInstance.findReview();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->findReview();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->findReview();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findReview: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # List tasks in review state
    api_response = api_instance.find_review()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findReview: %s\n" % e)

Parameters

Responses

Status: 200 - A list of all tasks in review state

Status: 500 - Unexpected error


findTodo

List tasks in todo state

Lists all tasks which are in todo state


/task/todo

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/todo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findTodo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findTodo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.findTodo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#findTodo");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List tasks in todo state
[apiInstance findTodoWithCompletionHandler: 
              ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.findTodo(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class findTodoExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // List tasks in todo state
                array[TaskInfo] result = apiInstance.findTodo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.findTodo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->findTodo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->findTodo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->findTodo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->findTodo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # List tasks in todo state
    api_response = api_instance.find_todo()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->findTodo: %s\n" % e)

Parameters

Responses

Status: 200 - A list of all tasks in todo state


getTaskData

Get task details

Provides current data associated with given task


/task/{taskid}

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/{taskid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        UUID taskid = ; // UUID | 
        try {
            FullTaskInfo result = apiInstance.getTaskData(taskid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTaskData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        UUID taskid = ; // UUID | 
        try {
            FullTaskInfo result = apiInstance.getTaskData(taskid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTaskData");
            e.printStackTrace();
        }
    }
}
UUID *taskid = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get task details
[apiInstance getTaskDataWith:taskid
              completionHandler: ^(FullTaskInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var taskid = ; // {UUID} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTaskData(taskid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTaskDataExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var taskid = new UUID(); // UUID | 

            try
            {
                // Get task details
                FullTaskInfo result = apiInstance.getTaskData(taskid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getTaskData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$taskid = ; // UUID | 

try {
    $result = $api_instance->getTaskData($taskid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getTaskData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $taskid = ; # UUID | 

eval { 
    my $result = $api_instance->getTaskData(taskid => $taskid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getTaskData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
taskid =  # UUID | 

try: 
    # Get task details
    api_response = api_instance.get_task_data(taskid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getTaskData: %s\n" % e)

Parameters

Path parameters
Name Description
taskid*
UUID (uuid)
Required

Responses

Status: 200 - A data related to given task

Status: 404 - Task with given ID has not been found

Status: 500 - Unexpected error


listActiveTasks

List all active tasks

Provides list of all non-archived tasks


/task

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.listActiveTasks();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listActiveTasks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            array[TaskInfo] result = apiInstance.listActiveTasks();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listActiveTasks");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// List all active tasks
[apiInstance listActiveTasksWithCompletionHandler: 
              ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listActiveTasks(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listActiveTasksExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // List all active tasks
                array[TaskInfo] result = apiInstance.listActiveTasks();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listActiveTasks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $result = $api_instance->listActiveTasks();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listActiveTasks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->listActiveTasks();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->listActiveTasks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # List all active tasks
    api_response = api_instance.list_active_tasks()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->listActiveTasks: %s\n" % e)

Parameters

Responses

Status: 200 - All active tasks

Status: 500 - Unexpected error


taskSearchGet


/task/search

Usage and SDK Samples

curl -X GET "http://api.tasker.ovh/1.0.0/task/search?params="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String params = params_example; // String | A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'

        try {
            array[TaskInfo] result = apiInstance.taskSearchGet(params);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#taskSearchGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String params = params_example; // String | A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'

        try {
            array[TaskInfo] result = apiInstance.taskSearchGet(params);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#taskSearchGet");
            e.printStackTrace();
        }
    }
}
String *params = params_example; // A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'


DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance taskSearchGetWith:params
              completionHandler: ^(array[TaskInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var params = params_example; // {String} A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'



var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.taskSearchGet(params, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class taskSearchGetExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var params = params_example;  // String | A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'


            try
            {
                array[TaskInfo] result = apiInstance.taskSearchGet(params);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.taskSearchGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$params = params_example; // String | A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'


try {
    $result = $api_instance->taskSearchGet($params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->taskSearchGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $params = params_example; # String | A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'


eval { 
    my $result = $api_instance->taskSearchGet(params => $params);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->taskSearchGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
params = params_example # String | A valid JSON object with at least one of the following properties:
  * `asignee` - a full name of an asigned person
  * `asignee_like` - a partial name of an asigned person
  * `title` - a full title of the searched task
  * `title_like` - a partial name of the searched task
  * `state`, where its value is a string according to $ref: '#/definitions/state/description'


try: 
    api_response = api_instance.task_search_get(params)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->taskSearchGet: %s\n" % e)

Parameters

Query parameters
Name Description
params*
String
A valid JSON object with at least one of the following properties: * `asignee` - a full name of an asigned person * `asignee_like` - a partial name of an asigned person * `title` - a full title of the searched task * `title_like` - a partial name of the searched task * `state`, where its value is a string according to $ref: '#/definitions/state/description'
Required

Responses

Status: 200 - A list of tasks fitting into given parameters

Status: 500 - Unexpected error


updateTaskData

Update task details

Modifies data associated with given task


/task/{taskid}

Usage and SDK Samples

curl -X PATCH "http://api.tasker.ovh/1.0.0/task/{taskid}?title=&description=&asignee="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        UUID taskid = ; // UUID | 
        String title = title_example; // String | A title of the task
        String description = description_example; // String | A description of the task
        String asignee = asignee_example; // String | A name of person asigned to the task
        try {
            apiInstance.updateTaskData(taskid, title, description, asignee);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateTaskData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        UUID taskid = ; // UUID | 
        String title = title_example; // String | A title of the task
        String description = description_example; // String | A description of the task
        String asignee = asignee_example; // String | A name of person asigned to the task
        try {
            apiInstance.updateTaskData(taskid, title, description, asignee);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateTaskData");
            e.printStackTrace();
        }
    }
}
UUID *taskid = ; // 
String *title = title_example; // A title of the task
String *description = description_example; // A description of the task (optional)
String *asignee = asignee_example; // A name of person asigned to the task (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update task details
[apiInstance updateTaskDataWith:taskid
    title:title
    description:description
    asignee:asignee
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TaskerApi = require('tasker_api');

var api = new TaskerApi.DefaultApi()

var taskid = ; // {UUID} 

var title = title_example; // {String} A title of the task

var opts = { 
  'description': description_example, // {String} A description of the task
  'asignee': asignee_example // {String} A name of person asigned to the task
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateTaskData(taskid, title, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateTaskDataExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var taskid = new UUID(); // UUID | 
            var title = title_example;  // String | A title of the task
            var description = description_example;  // String | A description of the task (optional) 
            var asignee = asignee_example;  // String | A name of person asigned to the task (optional) 

            try
            {
                // Update task details
                apiInstance.updateTaskData(taskid, title, description, asignee);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateTaskData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$taskid = ; // UUID | 
$title = title_example; // String | A title of the task
$description = description_example; // String | A description of the task
$asignee = asignee_example; // String | A name of person asigned to the task

try {
    $api_instance->updateTaskData($taskid, $title, $description, $asignee);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateTaskData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $taskid = ; # UUID | 
my $title = title_example; # String | A title of the task
my $description = description_example; # String | A description of the task
my $asignee = asignee_example; # String | A name of person asigned to the task

eval { 
    $api_instance->updateTaskData(taskid => $taskid, title => $title, description => $description, asignee => $asignee);
};
if ($@) {
    warn "Exception when calling DefaultApi->updateTaskData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
taskid =  # UUID | 
title = title_example # String | A title of the task
description = description_example # String | A description of the task (optional)
asignee = asignee_example # String | A name of person asigned to the task (optional)

try: 
    # Update task details
    api_instance.update_task_data(taskid, title, description=description, asignee=asignee)
except ApiException as e:
    print("Exception when calling DefaultApi->updateTaskData: %s\n" % e)

Parameters

Path parameters
Name Description
taskid*
UUID (uuid)
Required
Query parameters
Name Description
title*
String
A title of the task
Required
description
String
A description of the task
asignee
String
A name of person asigned to the task

Responses

Status: 200 - Modification succeeded

Status: 400 - Task not modified due to bad arguments

Status: 500 - Task not modified due to internal system error