DOCBOX® API

Archive

archivestructure

Archive structure

Retrieves the folder structure of the DOCBOX®.


/archivestructure

Usage and SDK Samples

curl -X GET \
-H "API-Key: [[apiKey]]" \
 -H "Authorization: Basic [[basicHash]]" \
 -H "Accept: application/json" \
 "/api/v2/archivestructure?parent-folder-id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ArchiveApi;

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

public class ArchiveApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apiKeyAuth
        ApiKeyAuth apiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyAuth");
        apiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKeyAuth.setApiKeyPrefix("Token");
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        // Create an instance of the API class
        ArchiveApi apiInstance = new ArchiveApi();
        Integer parentFolderId = 56; // Integer | Parent folder id. If omitted the whole archive is returned.

        try {
            docboxArchive result = apiInstance.archivestructure(parentFolderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArchiveApi#archivestructure");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ArchiveApi;

public class ArchiveApiExample {
    public static void main(String[] args) {
        ArchiveApi apiInstance = new ArchiveApi();
        Integer parentFolderId = 56; // Integer | Parent folder id. If omitted the whole archive is returned.

        try {
            docboxArchive result = apiInstance.archivestructure(parentFolderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ArchiveApi#archivestructure");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"API-Key"];

// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Create an instance of the API class
ArchiveApi *apiInstance = [[ArchiveApi alloc] init];
Integer *parentFolderId = 56; // Parent folder id. If omitted the whole archive is returned. (optional) (default to null)

// Archive structure
[apiInstance archivestructureWith:parentFolderId
              completionHandler: ^(docboxArchive output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var DocboxApi = require('docbox_api');
var defaultClient = DocboxApi.ApiClient.instance;

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

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

// Create an instance of the API class
var api = new DocboxApi.ArchiveApi()
var opts = {
  'parentFolderId': 56 // {Integer} Parent folder id. If omitted the whole archive is returned.
};

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

namespace Example
{
    public class archivestructureExample
    {
        public void main()
        {
            // Configure API key authorization: apiKeyAuth
            Configuration.Default.ApiKey.Add("API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("API-Key", "Bearer");
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            // Create an instance of the API class
            var apiInstance = new ArchiveApi();
            var parentFolderId = 56;  // Integer | Parent folder id. If omitted the whole archive is returned. (optional)  (default to null)

            try {
                // Archive structure
                docboxArchive result = apiInstance.archivestructure(parentFolderId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ArchiveApi.archivestructure: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');

// Configure HTTP basic authorization: basicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ArchiveApi();
$parentFolderId = 56; // Integer | Parent folder id. If omitted the whole archive is returned.

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

# Configure API key authorization: apiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'API-Key'} = "Bearer";

# Configure HTTP basic authorization: basicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ArchiveApi->new();
my $parentFolderId = 56; # Integer | Parent folder id. If omitted the whole archive is returned.

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

# Configure API key authorization: apiKeyAuth
openapi_client.configuration.api_key['API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['API-Key'] = 'Bearer'

# Configure HTTP basic authorization: basicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Create an instance of the API class
api_instance = openapi_client.ArchiveApi()
parentFolderId = 56 # Integer | Parent folder id. If omitted the whole archive is returned. (optional) (default to null)

try:
    # Archive structure
    api_response = api_instance.archivestructure(parentFolderId=parentFolderId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArchiveApi->archivestructure: %s\n" % e)
extern crate ArchiveApi;

pub fn main() {
    let parentFolderId = 56; // Integer

    let mut context = ArchiveApi::Context::default();
    let result = client.archivestructure(parentFolderId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
parent-folder-id
Integer
Parent folder id. If omitted the whole archive is returned.

Responses


Document

documentList

Document list

Lists the documents within a specific folder.


/document/list

Usage and SDK Samples

curl -X GET \
-H "API-Key: [[apiKey]]" \
 -H "Authorization: Basic [[basicHash]]" \
 -H "Accept: application/json" \
 "/api/v2/document/list?folder-id=56&included-metadata-keys=includedMetadataKeys_example&excluded-matadata-keys=excludedMatadataKeys_example&with-autoexport-status=true&filter-date-created-after=2013-10-20&subfolders-recursive=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DocumentApi;

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

public class DocumentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apiKeyAuth
        ApiKeyAuth apiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyAuth");
        apiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKeyAuth.setApiKeyPrefix("Token");
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        // Create an instance of the API class
        DocumentApi apiInstance = new DocumentApi();
        Integer folderId = 56; // Integer | 
        String includedMetadataKeys = includedMetadataKeys_example; // String | 
        String excludedMatadataKeys = excludedMatadataKeys_example; // String | 
        Boolean withAutoexportStatus = true; // Boolean | 
        date filterDateCreatedAfter = 2013-10-20; // date | 
        Boolean subfoldersRecursive = true; // Boolean | 

        try {
            array[document] result = apiInstance.documentList(folderId, includedMetadataKeys, excludedMatadataKeys, withAutoexportStatus, filterDateCreatedAfter, subfoldersRecursive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DocumentApi#documentList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DocumentApi;

public class DocumentApiExample {
    public static void main(String[] args) {
        DocumentApi apiInstance = new DocumentApi();
        Integer folderId = 56; // Integer | 
        String includedMetadataKeys = includedMetadataKeys_example; // String | 
        String excludedMatadataKeys = excludedMatadataKeys_example; // String | 
        Boolean withAutoexportStatus = true; // Boolean | 
        date filterDateCreatedAfter = 2013-10-20; // date | 
        Boolean subfoldersRecursive = true; // Boolean | 

        try {
            array[document] result = apiInstance.documentList(folderId, includedMetadataKeys, excludedMatadataKeys, withAutoexportStatus, filterDateCreatedAfter, subfoldersRecursive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DocumentApi#documentList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"API-Key"];

// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Create an instance of the API class
DocumentApi *apiInstance = [[DocumentApi alloc] init];
Integer *folderId = 56; //  (default to null)
String *includedMetadataKeys = includedMetadataKeys_example; //  (optional) (default to null)
String *excludedMatadataKeys = excludedMatadataKeys_example; //  (optional) (default to null)
Boolean *withAutoexportStatus = true; //  (optional) (default to null)
date *filterDateCreatedAfter = 2013-10-20; //  (optional) (default to null)
Boolean *subfoldersRecursive = true; //  (optional) (default to false)

// Document list
[apiInstance documentListWith:folderId
    includedMetadataKeys:includedMetadataKeys
    excludedMatadataKeys:excludedMatadataKeys
    withAutoexportStatus:withAutoexportStatus
    filterDateCreatedAfter:filterDateCreatedAfter
    subfoldersRecursive:subfoldersRecursive
              completionHandler: ^(array[document] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var DocboxApi = require('docbox_api');
var defaultClient = DocboxApi.ApiClient.instance;

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

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

// Create an instance of the API class
var api = new DocboxApi.DocumentApi()
var folderId = 56; // {Integer} 
var opts = {
  'includedMetadataKeys': includedMetadataKeys_example, // {String} 
  'excludedMatadataKeys': excludedMatadataKeys_example, // {String} 
  'withAutoexportStatus': true, // {Boolean} 
  'filterDateCreatedAfter': 2013-10-20, // {date} 
  'subfoldersRecursive': true // {Boolean} 
};

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

namespace Example
{
    public class documentListExample
    {
        public void main()
        {
            // Configure API key authorization: apiKeyAuth
            Configuration.Default.ApiKey.Add("API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("API-Key", "Bearer");
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            // Create an instance of the API class
            var apiInstance = new DocumentApi();
            var folderId = 56;  // Integer |  (default to null)
            var includedMetadataKeys = includedMetadataKeys_example;  // String |  (optional)  (default to null)
            var excludedMatadataKeys = excludedMatadataKeys_example;  // String |  (optional)  (default to null)
            var withAutoexportStatus = true;  // Boolean |  (optional)  (default to null)
            var filterDateCreatedAfter = 2013-10-20;  // date |  (optional)  (default to null)
            var subfoldersRecursive = true;  // Boolean |  (optional)  (default to false)

            try {
                // Document list
                array[document] result = apiInstance.documentList(folderId, includedMetadataKeys, excludedMatadataKeys, withAutoexportStatus, filterDateCreatedAfter, subfoldersRecursive);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DocumentApi.documentList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');

// Configure HTTP basic authorization: basicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DocumentApi();
$folderId = 56; // Integer | 
$includedMetadataKeys = includedMetadataKeys_example; // String | 
$excludedMatadataKeys = excludedMatadataKeys_example; // String | 
$withAutoexportStatus = true; // Boolean | 
$filterDateCreatedAfter = 2013-10-20; // date | 
$subfoldersRecursive = true; // Boolean | 

try {
    $result = $api_instance->documentList($folderId, $includedMetadataKeys, $excludedMatadataKeys, $withAutoexportStatus, $filterDateCreatedAfter, $subfoldersRecursive);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DocumentApi->documentList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DocumentApi;

# Configure API key authorization: apiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'API-Key'} = "Bearer";

# Configure HTTP basic authorization: basicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DocumentApi->new();
my $folderId = 56; # Integer | 
my $includedMetadataKeys = includedMetadataKeys_example; # String | 
my $excludedMatadataKeys = excludedMatadataKeys_example; # String | 
my $withAutoexportStatus = true; # Boolean | 
my $filterDateCreatedAfter = 2013-10-20; # date | 
my $subfoldersRecursive = true; # Boolean | 

eval {
    my $result = $api_instance->documentList(folderId => $folderId, includedMetadataKeys => $includedMetadataKeys, excludedMatadataKeys => $excludedMatadataKeys, withAutoexportStatus => $withAutoexportStatus, filterDateCreatedAfter => $filterDateCreatedAfter, subfoldersRecursive => $subfoldersRecursive);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DocumentApi->documentList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKeyAuth
openapi_client.configuration.api_key['API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['API-Key'] = 'Bearer'

# Configure HTTP basic authorization: basicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Create an instance of the API class
api_instance = openapi_client.DocumentApi()
folderId = 56 # Integer |  (default to null)
includedMetadataKeys = includedMetadataKeys_example # String |  (optional) (default to null)
excludedMatadataKeys = excludedMatadataKeys_example # String |  (optional) (default to null)
withAutoexportStatus = true # Boolean |  (optional) (default to null)
filterDateCreatedAfter = 2013-10-20 # date |  (optional) (default to null)
subfoldersRecursive = true # Boolean |  (optional) (default to false)

try:
    # Document list
    api_response = api_instance.document_list(folderId, includedMetadataKeys=includedMetadataKeys, excludedMatadataKeys=excludedMatadataKeys, withAutoexportStatus=withAutoexportStatus, filterDateCreatedAfter=filterDateCreatedAfter, subfoldersRecursive=subfoldersRecursive)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DocumentApi->documentList: %s\n" % e)
extern crate DocumentApi;

pub fn main() {
    let folderId = 56; // Integer
    let includedMetadataKeys = includedMetadataKeys_example; // String
    let excludedMatadataKeys = excludedMatadataKeys_example; // String
    let withAutoexportStatus = true; // Boolean
    let filterDateCreatedAfter = 2013-10-20; // date
    let subfoldersRecursive = true; // Boolean

    let mut context = DocumentApi::Context::default();
    let result = client.documentList(folderId, includedMetadataKeys, excludedMatadataKeys, withAutoexportStatus, filterDateCreatedAfter, subfoldersRecursive, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
folder-id*
Integer
Required
included-metadata-keys
String
excluded-matadata-keys
String
with-autoexport-status
Boolean
filter-date-created-after
date (date)
subfolders-recursive
Boolean

Responses


FileUpload

fileUpload

File upload

Archives a file in the DOCBOX® or places it in an input tray.


/file-upload

Usage and SDK Samples

curl -X POST \
-H "API-Key: [[apiKey]]" \
 -H "Authorization: Basic [[basicHash]]" \
 -H "Content-Type: multipart/form-data" \
 "/api/v2/file-upload"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FileUploadApi;

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

public class FileUploadApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apiKeyAuth
        ApiKeyAuth apiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyAuth");
        apiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKeyAuth.setApiKeyPrefix("Token");
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        // Create an instance of the API class
        FileUploadApi apiInstance = new FileUploadApi();
        File uploadData = BINARY_DATA_HERE; // File | 
        String targetMandatorName = targetMandatorName_example; // String | 
        String targetFolderPath = targetFolderPath_example; // String | 
        Long targetFolderId = 789; // Long | 
        String targetDocumentName = targetDocumentName_example; // String | 
        String keywords = keywords_example; // String | 
        String documentTypes = documentTypes_example; // String | 
        String externalId = externalId_example; // String | 
        String externalMetadatas = externalMetadatas_example; // String | 
        String emailImportOrder = emailImportOrder_example; // String | 
        Boolean forceNewDocument = true; // Boolean | 

        try {
            apiInstance.fileUpload(uploadData, targetMandatorName, targetFolderPath, targetFolderId, targetDocumentName, keywords, documentTypes, externalId, externalMetadatas, emailImportOrder, forceNewDocument);
        } catch (ApiException e) {
            System.err.println("Exception when calling FileUploadApi#fileUpload");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.FileUploadApi;

public class FileUploadApiExample {
    public static void main(String[] args) {
        FileUploadApi apiInstance = new FileUploadApi();
        File uploadData = BINARY_DATA_HERE; // File | 
        String targetMandatorName = targetMandatorName_example; // String | 
        String targetFolderPath = targetFolderPath_example; // String | 
        Long targetFolderId = 789; // Long | 
        String targetDocumentName = targetDocumentName_example; // String | 
        String keywords = keywords_example; // String | 
        String documentTypes = documentTypes_example; // String | 
        String externalId = externalId_example; // String | 
        String externalMetadatas = externalMetadatas_example; // String | 
        String emailImportOrder = emailImportOrder_example; // String | 
        Boolean forceNewDocument = true; // Boolean | 

        try {
            apiInstance.fileUpload(uploadData, targetMandatorName, targetFolderPath, targetFolderId, targetDocumentName, keywords, documentTypes, externalId, externalMetadatas, emailImportOrder, forceNewDocument);
        } catch (ApiException e) {
            System.err.println("Exception when calling FileUploadApi#fileUpload");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"API-Key"];

// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Create an instance of the API class
FileUploadApi *apiInstance = [[FileUploadApi alloc] init];
File *uploadData = BINARY_DATA_HERE; //  (default to null)
String *targetMandatorName = targetMandatorName_example; //  (optional) (default to null)
String *targetFolderPath = targetFolderPath_example; //  (optional) (default to null)
Long *targetFolderId = 789; //  (optional) (default to null)
String *targetDocumentName = targetDocumentName_example; //  (optional) (default to null)
String *keywords = keywords_example; //  (optional) (default to null)
String *documentTypes = documentTypes_example; //  (optional) (default to null)
String *externalId = externalId_example; //  (optional) (default to null)
String *externalMetadatas = externalMetadatas_example; //  (optional) (default to null)
String *emailImportOrder = emailImportOrder_example; //  (optional) (default to null)
Boolean *forceNewDocument = true; //  (optional) (default to null)

// File upload
[apiInstance fileUploadWith:uploadData
    targetMandatorName:targetMandatorName
    targetFolderPath:targetFolderPath
    targetFolderId:targetFolderId
    targetDocumentName:targetDocumentName
    keywords:keywords
    documentTypes:documentTypes
    externalId:externalId
    externalMetadatas:externalMetadatas
    emailImportOrder:emailImportOrder
    forceNewDocument:forceNewDocument
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var DocboxApi = require('docbox_api');
var defaultClient = DocboxApi.ApiClient.instance;

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

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

// Create an instance of the API class
var api = new DocboxApi.FileUploadApi()
var uploadData = BINARY_DATA_HERE; // {File} 
var opts = {
  'targetMandatorName': targetMandatorName_example, // {String} 
  'targetFolderPath': targetFolderPath_example, // {String} 
  'targetFolderId': 789, // {Long} 
  'targetDocumentName': targetDocumentName_example, // {String} 
  'keywords': keywords_example, // {String} 
  'documentTypes': documentTypes_example, // {String} 
  'externalId': externalId_example, // {String} 
  'externalMetadatas': externalMetadatas_example, // {String} 
  'emailImportOrder': emailImportOrder_example, // {String} 
  'forceNewDocument': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.fileUpload(uploadData, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class fileUploadExample
    {
        public void main()
        {
            // Configure API key authorization: apiKeyAuth
            Configuration.Default.ApiKey.Add("API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("API-Key", "Bearer");
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            // Create an instance of the API class
            var apiInstance = new FileUploadApi();
            var uploadData = BINARY_DATA_HERE;  // File |  (default to null)
            var targetMandatorName = targetMandatorName_example;  // String |  (optional)  (default to null)
            var targetFolderPath = targetFolderPath_example;  // String |  (optional)  (default to null)
            var targetFolderId = 789;  // Long |  (optional)  (default to null)
            var targetDocumentName = targetDocumentName_example;  // String |  (optional)  (default to null)
            var keywords = keywords_example;  // String |  (optional)  (default to null)
            var documentTypes = documentTypes_example;  // String |  (optional)  (default to null)
            var externalId = externalId_example;  // String |  (optional)  (default to null)
            var externalMetadatas = externalMetadatas_example;  // String |  (optional)  (default to null)
            var emailImportOrder = emailImportOrder_example;  // String |  (optional)  (default to null)
            var forceNewDocument = true;  // Boolean |  (optional)  (default to null)

            try {
                // File upload
                apiInstance.fileUpload(uploadData, targetMandatorName, targetFolderPath, targetFolderId, targetDocumentName, keywords, documentTypes, externalId, externalMetadatas, emailImportOrder, forceNewDocument);
            } catch (Exception e) {
                Debug.Print("Exception when calling FileUploadApi.fileUpload: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');

// Configure HTTP basic authorization: basicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FileUploadApi();
$uploadData = BINARY_DATA_HERE; // File | 
$targetMandatorName = targetMandatorName_example; // String | 
$targetFolderPath = targetFolderPath_example; // String | 
$targetFolderId = 789; // Long | 
$targetDocumentName = targetDocumentName_example; // String | 
$keywords = keywords_example; // String | 
$documentTypes = documentTypes_example; // String | 
$externalId = externalId_example; // String | 
$externalMetadatas = externalMetadatas_example; // String | 
$emailImportOrder = emailImportOrder_example; // String | 
$forceNewDocument = true; // Boolean | 

try {
    $api_instance->fileUpload($uploadData, $targetMandatorName, $targetFolderPath, $targetFolderId, $targetDocumentName, $keywords, $documentTypes, $externalId, $externalMetadatas, $emailImportOrder, $forceNewDocument);
} catch (Exception $e) {
    echo 'Exception when calling FileUploadApi->fileUpload: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FileUploadApi;

# Configure API key authorization: apiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'API-Key'} = "Bearer";

# Configure HTTP basic authorization: basicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FileUploadApi->new();
my $uploadData = BINARY_DATA_HERE; # File | 
my $targetMandatorName = targetMandatorName_example; # String | 
my $targetFolderPath = targetFolderPath_example; # String | 
my $targetFolderId = 789; # Long | 
my $targetDocumentName = targetDocumentName_example; # String | 
my $keywords = keywords_example; # String | 
my $documentTypes = documentTypes_example; # String | 
my $externalId = externalId_example; # String | 
my $externalMetadatas = externalMetadatas_example; # String | 
my $emailImportOrder = emailImportOrder_example; # String | 
my $forceNewDocument = true; # Boolean | 

eval {
    $api_instance->fileUpload(uploadData => $uploadData, targetMandatorName => $targetMandatorName, targetFolderPath => $targetFolderPath, targetFolderId => $targetFolderId, targetDocumentName => $targetDocumentName, keywords => $keywords, documentTypes => $documentTypes, externalId => $externalId, externalMetadatas => $externalMetadatas, emailImportOrder => $emailImportOrder, forceNewDocument => $forceNewDocument);
};
if ($@) {
    warn "Exception when calling FileUploadApi->fileUpload: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKeyAuth
openapi_client.configuration.api_key['API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['API-Key'] = 'Bearer'

# Configure HTTP basic authorization: basicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Create an instance of the API class
api_instance = openapi_client.FileUploadApi()
uploadData = BINARY_DATA_HERE # File |  (default to null)
targetMandatorName = targetMandatorName_example # String |  (optional) (default to null)
targetFolderPath = targetFolderPath_example # String |  (optional) (default to null)
targetFolderId = 789 # Long |  (optional) (default to null)
targetDocumentName = targetDocumentName_example # String |  (optional) (default to null)
keywords = keywords_example # String |  (optional) (default to null)
documentTypes = documentTypes_example # String |  (optional) (default to null)
externalId = externalId_example # String |  (optional) (default to null)
externalMetadatas = externalMetadatas_example # String |  (optional) (default to null)
emailImportOrder = emailImportOrder_example # String |  (optional) (default to null)
forceNewDocument = true # Boolean |  (optional) (default to null)

try:
    # File upload
    api_instance.file_upload(uploadData, targetMandatorName=targetMandatorName, targetFolderPath=targetFolderPath, targetFolderId=targetFolderId, targetDocumentName=targetDocumentName, keywords=keywords, documentTypes=documentTypes, externalId=externalId, externalMetadatas=externalMetadatas, emailImportOrder=emailImportOrder, forceNewDocument=forceNewDocument)
except ApiException as e:
    print("Exception when calling FileUploadApi->fileUpload: %s\n" % e)
extern crate FileUploadApi;

pub fn main() {
    let uploadData = BINARY_DATA_HERE; // File
    let targetMandatorName = targetMandatorName_example; // String
    let targetFolderPath = targetFolderPath_example; // String
    let targetFolderId = 789; // Long
    let targetDocumentName = targetDocumentName_example; // String
    let keywords = keywords_example; // String
    let documentTypes = documentTypes_example; // String
    let externalId = externalId_example; // String
    let externalMetadatas = externalMetadatas_example; // String
    let emailImportOrder = emailImportOrder_example; // String
    let forceNewDocument = true; // Boolean

    let mut context = FileUploadApi::Context::default();
    let result = client.fileUpload(uploadData, targetMandatorName, targetFolderPath, targetFolderId, targetDocumentName, keywords, documentTypes, externalId, externalMetadatas, emailImportOrder, forceNewDocument, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
target-mandator-name
String
target-folder-path
String
target-folder-id
Long (int64)
target-document-name
String
upload-data*
File (binary)
Required
keywords
String
document-types
String
external-id
String
external-metadatas
String
email-import-order
String
Enum: EMAIL_THEN_ATTACHMENTS, ATTACHMENTS_THEN_EMAIL, EMAIL_ONLY, ATTACHMENTS_ONLY
force-new-document
Boolean

Responses


Folder

folderCreate

Create folder

Create a new folder


/folder/create

Usage and SDK Samples

curl -X POST \
-H "API-Key: [[apiKey]]" \
 -H "Authorization: Basic [[basicHash]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 "/api/v2/folder/create"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FolderApi;

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

public class FolderApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apiKeyAuth
        ApiKeyAuth apiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyAuth");
        apiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKeyAuth.setApiKeyPrefix("Token");
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        // Create an instance of the API class
        FolderApi apiInstance = new FolderApi();
        Long parentFolderId = 789; // Long | 
        String folderName = folderName_example; // String | 

        try {
            folderCreate result = apiInstance.folderCreate(parentFolderId, folderName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.FolderApi;

public class FolderApiExample {
    public static void main(String[] args) {
        FolderApi apiInstance = new FolderApi();
        Long parentFolderId = 789; // Long | 
        String folderName = folderName_example; // String | 

        try {
            folderCreate result = apiInstance.folderCreate(parentFolderId, folderName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FolderApi#folderCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"API-Key"];

// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Create an instance of the API class
FolderApi *apiInstance = [[FolderApi alloc] init];
Long *parentFolderId = 789; //  (default to null)
String *folderName = folderName_example; //  (default to null)

// Create folder
[apiInstance folderCreateWith:parentFolderId
    folderName:folderName
              completionHandler: ^(folderCreate output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var DocboxApi = require('docbox_api');
var defaultClient = DocboxApi.ApiClient.instance;

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

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

// Create an instance of the API class
var api = new DocboxApi.FolderApi()
var parentFolderId = 789; // {Long} 
var folderName = folderName_example; // {String} 

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

namespace Example
{
    public class folderCreateExample
    {
        public void main()
        {
            // Configure API key authorization: apiKeyAuth
            Configuration.Default.ApiKey.Add("API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("API-Key", "Bearer");
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            // Create an instance of the API class
            var apiInstance = new FolderApi();
            var parentFolderId = 789;  // Long |  (default to null)
            var folderName = folderName_example;  // String |  (default to null)

            try {
                // Create folder
                folderCreate result = apiInstance.folderCreate(parentFolderId, folderName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FolderApi.folderCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');

// Configure HTTP basic authorization: basicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FolderApi();
$parentFolderId = 789; // Long | 
$folderName = folderName_example; // String | 

try {
    $result = $api_instance->folderCreate($parentFolderId, $folderName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FolderApi->folderCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FolderApi;

# Configure API key authorization: apiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'API-Key'} = "Bearer";

# Configure HTTP basic authorization: basicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FolderApi->new();
my $parentFolderId = 789; # Long | 
my $folderName = folderName_example; # String | 

eval {
    my $result = $api_instance->folderCreate(parentFolderId => $parentFolderId, folderName => $folderName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FolderApi->folderCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKeyAuth
openapi_client.configuration.api_key['API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['API-Key'] = 'Bearer'

# Configure HTTP basic authorization: basicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Create an instance of the API class
api_instance = openapi_client.FolderApi()
parentFolderId = 789 # Long |  (default to null)
folderName = folderName_example # String |  (default to null)

try:
    # Create folder
    api_response = api_instance.folder_create(parentFolderId, folderName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FolderApi->folderCreate: %s\n" % e)
extern crate FolderApi;

pub fn main() {
    let parentFolderId = 789; // Long
    let folderName = folderName_example; // String

    let mut context = FolderApi::Context::default();
    let result = client.folderCreate(parentFolderId, folderName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
parent-folder-id*
Long (int64)
Required
folder-name*
String
Required

Responses


Inbox

inboxList

Inbox list

Returns the inbox folders


/inboxes

Usage and SDK Samples

curl -X GET \
-H "API-Key: [[apiKey]]" \
 -H "Authorization: Basic [[basicHash]]" \
 -H "Accept: application/json" \
 "/api/v2/inboxes"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InboxApi;

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

public class InboxApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apiKeyAuth
        ApiKeyAuth apiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyAuth");
        apiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKeyAuth.setApiKeyPrefix("Token");
        
        // Configure HTTP basic authorization: basicAuth
        HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
        basicAuth.setUsername("YOUR USERNAME");
        basicAuth.setPassword("YOUR PASSWORD");

        // Create an instance of the API class
        InboxApi apiInstance = new InboxApi();

        try {
            inboxStructure result = apiInstance.inboxList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InboxApi#inboxList");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.InboxApi;

public class InboxApiExample {
    public static void main(String[] args) {
        InboxApi apiInstance = new InboxApi();

        try {
            inboxStructure result = apiInstance.inboxList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InboxApi#inboxList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"API-Key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"API-Key"];

// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Create an instance of the API class
InboxApi *apiInstance = [[InboxApi alloc] init];

// Inbox list
[apiInstance inboxListWithCompletionHandler: 
              ^(inboxStructure output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var DocboxApi = require('docbox_api');
var defaultClient = DocboxApi.ApiClient.instance;

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

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

// Create an instance of the API class
var api = new DocboxApi.InboxApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.inboxList(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class inboxListExample
    {
        public void main()
        {
            // Configure API key authorization: apiKeyAuth
            Configuration.Default.ApiKey.Add("API-Key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("API-Key", "Bearer");
            // Configure HTTP basic authorization: basicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            // Create an instance of the API class
            var apiInstance = new InboxApi();

            try {
                // Inbox list
                inboxStructure result = apiInstance.inboxList();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InboxApi.inboxList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKeyAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');

// Configure HTTP basic authorization: basicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InboxApi();

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

# Configure API key authorization: apiKeyAuth
$WWW::OPenAPIClient::Configuration::api_key->{'API-Key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'API-Key'} = "Bearer";

# Configure HTTP basic authorization: basicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InboxApi->new();

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

# Configure API key authorization: apiKeyAuth
openapi_client.configuration.api_key['API-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['API-Key'] = 'Bearer'

# Configure HTTP basic authorization: basicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Create an instance of the API class
api_instance = openapi_client.InboxApi()

try:
    # Inbox list
    api_response = api_instance.inbox_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InboxApi->inboxList: %s\n" % e)
extern crate InboxApi;

pub fn main() {

    let mut context = InboxApi::Context::default();
    let result = client.inboxList(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses