Parsr API

Input

postDocument

Pipeline Input

Entry point to add a file to the processing queue.


/document

Usage and SDK Samples

curl -X POST "https://localhost:3001/api/v1/document"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InputApi;

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

public class InputApiExample {

    public static void main(String[] args) {
        
        InputApi apiInstance = new InputApi();
        byte[] file = file_example; // byte[] | 
        config config = ; // config | 
        try {
            'String' result = apiInstance.postDocument(file, config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InputApi#postDocument");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InputApi;

public class InputApiExample {

    public static void main(String[] args) {
        InputApi apiInstance = new InputApi();
        byte[] file = file_example; // byte[] | 
        config config = ; // config | 
        try {
            'String' result = apiInstance.postDocument(file, config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InputApi#postDocument");
            e.printStackTrace();
        }
    }
}
byte[] *file = file_example; //  (optional)
config *config = ; //  (optional)

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

// Pipeline Input
[apiInstance postDocumentWith:file
    config:config
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.InputApi()

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

namespace Example
{
    public class postDocumentExample
    {
        public void main()
        {

            var apiInstance = new InputApi();
            var file = file_example;  // byte[] |  (optional) 
            var config = new config(); // config |  (optional) 

            try
            {
                // Pipeline Input
                'String' result = apiInstance.postDocument(file, config);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InputApi.postDocument: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiInputApi();
$file = file_example; // byte[] | 
$config = ; // config | 

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

my $api_instance = WWW::SwaggerClient::InputApi->new();
my $file = file_example; # byte[] | 
my $config = ; # config | 

eval { 
    my $result = $api_instance->postDocument(file => $file, config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InputApi->postDocument: $@\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.InputApi()
file = file_example # byte[] |  (optional)
config =  # config |  (optional)

try: 
    # Pipeline Input
    api_response = api_instance.post_document(file=file, config=config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InputApi->postDocument: %s\n" % e)

Parameters

Form parameters
Name Description
file
byte[] (binary)
config
config

Responses

Status: 202 - Accepted

Name Type Format Description
Location String

Status: 415 - Unsupported Media Type


Output

getCsv

Get the CSV representation of a table


/csv/{id}/{page}/{table}

Usage and SDK Samples

curl -X GET "https://localhost:3001/api/v1/csv/{id}/{page}/{table}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OutputApi;

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

public class OutputApiExample {

    public static void main(String[] args) {
        
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        BigDecimal page = 1.2; // BigDecimal | Page number
        BigDecimal table = 1.2; // BigDecimal | Table number
        try {
            'String' result = apiInstance.getCsv(id, page, table);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getCsv");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OutputApi;

public class OutputApiExample {

    public static void main(String[] args) {
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        BigDecimal page = 1.2; // BigDecimal | Page number
        BigDecimal table = 1.2; // BigDecimal | Table number
        try {
            'String' result = apiInstance.getCsv(id, page, table);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getCsv");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of the document
BigDecimal *page = 1.2; // Page number
BigDecimal *table = 1.2; // Table number

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

// Get the CSV representation of a table
[apiInstance getCsvWith:id
    page:page
    table:table
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.OutputApi()
var id = id_example; // {{String}} ID of the document
var page = 1.2; // {{BigDecimal}} Page number
var table = 1.2; // {{BigDecimal}} Table number

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

namespace Example
{
    public class getCsvExample
    {
        public void main()
        {

            var apiInstance = new OutputApi();
            var id = id_example;  // String | ID of the document
            var page = 1.2;  // BigDecimal | Page number
            var table = 1.2;  // BigDecimal | Table number

            try
            {
                // Get the CSV representation of a table
                'String' result = apiInstance.getCsv(id, page, table);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OutputApi.getCsv: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOutputApi();
$id = id_example; // String | ID of the document
$page = 1.2; // BigDecimal | Page number
$table = 1.2; // BigDecimal | Table number

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

my $api_instance = WWW::SwaggerClient::OutputApi->new();
my $id = id_example; # String | ID of the document
my $page = 1.2; # BigDecimal | Page number
my $table = 1.2; # BigDecimal | Table number

eval { 
    my $result = $api_instance->getCsv(id => $id, page => $page, table => $table);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OutputApi->getCsv: $@\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.OutputApi()
id = id_example # String | ID of the document
page = 1.2 # BigDecimal | Page number
table = 1.2 # BigDecimal | Table number

try: 
    # Get the CSV representation of a table
    api_response = api_instance.get_csv(id, page, table)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OutputApi->getCsv: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ID of the document
Required
page*
BigDecimal
Page number
Required
table*
BigDecimal
Table number
Required

Responses

Status: 200 - Ok

Status: 404 - Not Found


getCsvList

Get the list of every CSV file path


/csv/{id}

Usage and SDK Samples

curl -X GET "https://localhost:3001/api/v1/csv/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OutputApi;

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

public class OutputApiExample {

    public static void main(String[] args) {
        
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            array['String'] result = apiInstance.getCsvList(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getCsvList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OutputApi;

public class OutputApiExample {

    public static void main(String[] args) {
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            array['String'] result = apiInstance.getCsvList(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getCsvList");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of the document

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

// Get the list of every CSV file path
[apiInstance getCsvListWith:id
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.OutputApi()
var id = id_example; // {{String}} ID of the document

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

namespace Example
{
    public class getCsvListExample
    {
        public void main()
        {

            var apiInstance = new OutputApi();
            var id = id_example;  // String | ID of the document

            try
            {
                // Get the list of every CSV file path
                array['String'] result = apiInstance.getCsvList(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OutputApi.getCsvList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOutputApi();
$id = id_example; // String | ID of the document

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

my $api_instance = WWW::SwaggerClient::OutputApi->new();
my $id = id_example; # String | ID of the document

eval { 
    my $result = $api_instance->getCsvList(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OutputApi->getCsvList: $@\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.OutputApi()
id = id_example # String | ID of the document

try: 
    # Get the list of every CSV file path
    api_response = api_instance.get_csv_list(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OutputApi->getCsvList: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ID of the document
Required

Responses

Status: 200 - Ok

Status: 404 - Not Found


getJson

Get the JSON representation of the document


/json/{id}

Usage and SDK Samples

curl -X GET "https://localhost:3001/api/v1/json/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OutputApi;

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

public class OutputApiExample {

    public static void main(String[] args) {
        
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            json result = apiInstance.getJson(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getJson");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OutputApi;

public class OutputApiExample {

    public static void main(String[] args) {
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            json result = apiInstance.getJson(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getJson");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of the document

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

// Get the JSON representation of the document
[apiInstance getJsonWith:id
              completionHandler: ^(json output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.OutputApi()
var id = id_example; // {{String}} ID of the document

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

namespace Example
{
    public class getJsonExample
    {
        public void main()
        {

            var apiInstance = new OutputApi();
            var id = id_example;  // String | ID of the document

            try
            {
                // Get the JSON representation of the document
                json result = apiInstance.getJson(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OutputApi.getJson: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOutputApi();
$id = id_example; // String | ID of the document

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

my $api_instance = WWW::SwaggerClient::OutputApi->new();
my $id = id_example; # String | ID of the document

eval { 
    my $result = $api_instance->getJson(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OutputApi->getJson: $@\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.OutputApi()
id = id_example # String | ID of the document

try: 
    # Get the JSON representation of the document
    api_response = api_instance.get_json(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OutputApi->getJson: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ID of the document
Required

Responses

Status: 200 - Ok

Status: 404 - Not Found


getMarkdown

Get the Markdown representation of the document


/markdown/{id}

Usage and SDK Samples

curl -X GET "https://localhost:3001/api/v1/markdown/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OutputApi;

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

public class OutputApiExample {

    public static void main(String[] args) {
        
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            'String' result = apiInstance.getMarkdown(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getMarkdown");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OutputApi;

public class OutputApiExample {

    public static void main(String[] args) {
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            'String' result = apiInstance.getMarkdown(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getMarkdown");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of the document

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

// Get the Markdown representation of the document
[apiInstance getMarkdownWith:id
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.OutputApi()
var id = id_example; // {{String}} ID of the document

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

namespace Example
{
    public class getMarkdownExample
    {
        public void main()
        {

            var apiInstance = new OutputApi();
            var id = id_example;  // String | ID of the document

            try
            {
                // Get the Markdown representation of the document
                'String' result = apiInstance.getMarkdown(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OutputApi.getMarkdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOutputApi();
$id = id_example; // String | ID of the document

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

my $api_instance = WWW::SwaggerClient::OutputApi->new();
my $id = id_example; # String | ID of the document

eval { 
    my $result = $api_instance->getMarkdown(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OutputApi->getMarkdown: $@\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.OutputApi()
id = id_example # String | ID of the document

try: 
    # Get the Markdown representation of the document
    api_response = api_instance.get_markdown(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OutputApi->getMarkdown: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ID of the document
Required

Responses

Status: 200 - Ok

Status: 404 - Not Found


getText

Get the raw text representation of the document


/text/{id}

Usage and SDK Samples

curl -X GET "https://localhost:3001/api/v1/text/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OutputApi;

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

public class OutputApiExample {

    public static void main(String[] args) {
        
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            'String' result = apiInstance.getText(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getText");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OutputApi;

public class OutputApiExample {

    public static void main(String[] args) {
        OutputApi apiInstance = new OutputApi();
        String id = id_example; // String | ID of the document
        try {
            'String' result = apiInstance.getText(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OutputApi#getText");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of the document

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

// Get the raw text representation of the document
[apiInstance getTextWith:id
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.OutputApi()
var id = id_example; // {{String}} ID of the document

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

namespace Example
{
    public class getTextExample
    {
        public void main()
        {

            var apiInstance = new OutputApi();
            var id = id_example;  // String | ID of the document

            try
            {
                // Get the raw text representation of the document
                'String' result = apiInstance.getText(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OutputApi.getText: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiOutputApi();
$id = id_example; // String | ID of the document

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

my $api_instance = WWW::SwaggerClient::OutputApi->new();
my $id = id_example; # String | ID of the document

eval { 
    my $result = $api_instance->getText(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OutputApi->getText: $@\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.OutputApi()
id = id_example # String | ID of the document

try: 
    # Get the raw text representation of the document
    api_response = api_instance.get_text(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OutputApi->getText: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ID of the document
Required

Responses

Status: 200 - Ok

Status: 404 - Not Found


Processing

getQueueStatus

Get the status of the queue

Get the status of the queue


/queue/{id}

Usage and SDK Samples

curl -X GET "https://localhost:3001/api/v1/queue/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProcessingApi;

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

public class ProcessingApiExample {

    public static void main(String[] args) {
        
        ProcessingApi apiInstance = new ProcessingApi();
        String id = id_example; // String | ID of the document
        try {
            queueStatus result = apiInstance.getQueueStatus(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProcessingApi#getQueueStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProcessingApi;

public class ProcessingApiExample {

    public static void main(String[] args) {
        ProcessingApi apiInstance = new ProcessingApi();
        String id = id_example; // String | ID of the document
        try {
            queueStatus result = apiInstance.getQueueStatus(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProcessingApi#getQueueStatus");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of the document

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

// Get the status of the queue
[apiInstance getQueueStatusWith:id
              completionHandler: ^(queueStatus output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ParsrApi = require('document_parser_api');

var api = new ParsrApi.ProcessingApi()
var id = id_example; // {{String}} ID of the document

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

namespace Example
{
    public class getQueueStatusExample
    {
        public void main()
        {

            var apiInstance = new ProcessingApi();
            var id = id_example;  // String | ID of the document

            try
            {
                // Get the status of the queue
                queueStatus result = apiInstance.getQueueStatus(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProcessingApi.getQueueStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiProcessingApi();
$id = id_example; // String | ID of the document

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

my $api_instance = WWW::SwaggerClient::ProcessingApi->new();
my $id = id_example; # String | ID of the document

eval { 
    my $result = $api_instance->getQueueStatus(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProcessingApi->getQueueStatus: $@\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.ProcessingApi()
id = id_example # String | ID of the document

try: 
    # Get the status of the queue
    api_response = api_instance.get_queue_status(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProcessingApi->getQueueStatus: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
ID of the document
Required

Responses

Status: 200 - Ok. Returns the status of the queue

Status: 201 - Created. Returns the id of the document and links to generated resources.

Name Type Format Description
Location String

Status: 404 - Not Found

Status: 500 - Internal Server Error