GetDocument
Get a Particular Document.
API access URL. GET https://api1.agsystems.com/api/DocRetrieval/getDocument?docType=&fileExt=&GUID= docType : e.g. "INV" - Where Document Type is a descriptive code e.g. INV = Invoice. fileExt : e.g. "PDF"- file extension is a descriptive code of the file type. GUID : e.g. "b25b959554ed76058ac220b7b2e0a026" is GUID Key for document.
/api/DocumentRetrieval/getDocument
Usage and SDK Samples
curl -X GET "http://localhost:62684/api/DocumentRetrieval/getDocument?docType=&fileExt=&GUID="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DocumentRetrievalApi;
import java.io.File;
import java.util.*;
public class DocumentRetrievalApiExample {
public static void main(String[] args) {
DocumentRetrievalApi apiInstance = new DocumentRetrievalApi();
String docType = docType_example; // String | Code for Document Type
String fileExt = fileExt_example; // String | Code for Document Type
String gUID = gUID_example; // String | GUID key for document
try {
Object result = apiInstance.documentRetrievalGetDocument(docType, fileExt, gUID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentRetrievalApi#documentRetrievalGetDocument");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DocumentRetrievalApi;
public class DocumentRetrievalApiExample {
public static void main(String[] args) {
DocumentRetrievalApi apiInstance = new DocumentRetrievalApi();
String docType = docType_example; // String | Code for Document Type
String fileExt = fileExt_example; // String | Code for Document Type
String gUID = gUID_example; // String | GUID key for document
try {
Object result = apiInstance.documentRetrievalGetDocument(docType, fileExt, gUID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DocumentRetrievalApi#documentRetrievalGetDocument");
e.printStackTrace();
}
}
}
String *docType = docType_example; // Code for Document Type
String *fileExt = fileExt_example; // Code for Document Type
String *gUID = gUID_example; // GUID key for document
DocumentRetrievalApi *apiInstance = [[DocumentRetrievalApi alloc] init];
// Get a Particular Document.
[apiInstance documentRetrievalGetDocumentWith:docType
fileExt:fileExt
gUID:gUID
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AssociatedGlobalSystems = require('associated_global_systems');
var api = new AssociatedGlobalSystems.DocumentRetrievalApi()
var docType = docType_example; // {String} Code for Document Type
var fileExt = fileExt_example; // {String} Code for Document Type
var gUID = gUID_example; // {String} GUID key for document
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.documentRetrievalGetDocument(docType, fileExt, gUID, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class documentRetrievalGetDocumentExample
{
public void main()
{
var apiInstance = new DocumentRetrievalApi();
var docType = docType_example; // String | Code for Document Type
var fileExt = fileExt_example; // String | Code for Document Type
var gUID = gUID_example; // String | GUID key for document
try
{
// Get a Particular Document.
Object result = apiInstance.documentRetrievalGetDocument(docType, fileExt, gUID);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DocumentRetrievalApi.documentRetrievalGetDocument: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DocumentRetrievalApi();
$docType = docType_example; // String | Code for Document Type
$fileExt = fileExt_example; // String | Code for Document Type
$gUID = gUID_example; // String | GUID key for document
try {
$result = $api_instance->documentRetrievalGetDocument($docType, $fileExt, $gUID);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DocumentRetrievalApi->documentRetrievalGetDocument: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DocumentRetrievalApi;
my $api_instance = WWW::SwaggerClient::DocumentRetrievalApi->new();
my $docType = docType_example; # String | Code for Document Type
my $fileExt = fileExt_example; # String | Code for Document Type
my $gUID = gUID_example; # String | GUID key for document
eval {
my $result = $api_instance->documentRetrievalGetDocument(docType => $docType, fileExt => $fileExt, gUID => $gUID);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DocumentRetrievalApi->documentRetrievalGetDocument: $@\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.DocumentRetrievalApi()
docType = docType_example # String | Code for Document Type
fileExt = fileExt_example # String | Code for Document Type
gUID = gUID_example # String | GUID key for document
try:
# Get a Particular Document.
api_response = api_instance.document_retrieval_get_document(docType, fileExt, gUID)
pprint(api_response)
except ApiException as e:
print("Exception when calling DocumentRetrievalApi->documentRetrievalGetDocument: %s\n" % e)
Parameters
Name | Description |
---|---|
docType* |
String
Code for Document Type
Required
|
fileExt* |
String
Code for Document Type
Required
|
GUID* |
String
GUID key for document
Required
|