IIQAPI Interface |
Namespace: Informa.ImageQuest.API.Library
The IIQAPI type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddNote |
Add a note to a specific document.
|
![]() | AddRevision |
Add a revision to the IQDocument object identified by the specified GUID.
|
![]() ![]() | CreateDocument |
Create a new document in ImageQuest with the specified index values and associated backing document.
|
![]() | DeleteDocument |
Delete a document from the ImageQuest system.
|
![]() | DeleteDocumentById |
Delete a document with a specific document ID from the ImageQuest system
|
![]() | GetAttributes |
Retrieve the list of all valid attributes for the current cabinet.
|
![]() | GetDocument |
Retrieve a single document from the ImageQuest system based on the document's unique identifier.
|
![]() ![]() | GetDocumentStream |
Retrieve the backing file data associated with a specified ImageQuest document
|
![]() | GetDocumentTypeAttributes |
Return a list of attributed that are associated with the given document type.
|
![]() | GetDocumentTypes |
Retrieve a list of defined document type schema definition names
|
![]() | GetListAttributeItems |
Return a list of legal values for a particular IQ List Attribute
|
![]() | Login |
Log in to an ImageQuest cabinet as the specified ImageQuest user
|
![]() | RouteDocToRole |
Route a document to a specific Role.
|
![]() | RouteDocToUser |
Route a document to a specific User.
|
![]() ![]() | Search |
Execute an ad-hoc ImageQuest query to return a desired set of ImageQuest documents.
|
![]() | SSOLogin |
Log in to an ImageQuest cabinet using SSO
|
![]() | SystemLogin |
Log in to an ImageQuest cabinet as a system-level process.
|
![]() ![]() | UpdateDocument |
Post changes to an existing IQDocument object into the ImageQuest system.
|
![]() | ValidateAttribute |
Performs data validation on a proposed value for an ImageQuest attribute.
|
This interface defines the interactions between the ImageQuest core system and API consumer applications. Applications using .NET 3.5 or higher, and the new WCF-based Service References, should use this interface via the Service Proxy to interact with the ImageQuest system.
using ( IIQAPI api = new ImageQuestService.IQAPIClient() ) { string token = api.SystemLogin("ImageQuest"); IQDocumentAttribute[] metadata = new[] { new IQDocumentAttribute { Name = "DocumentType", Value = "Invoice" }, new IQDocumentAttribute { Name = "InvoiceNumber", Value = "12345" }, new IQDocumentAttribute { Name = "CustomerNumber", Value = "105-B" }, new IQDocumentAttribute { Name = "PageCount", Value = "15" }, new IQDocumentAttribute { Name = "NeedsOCR", Value = "True" }, }; byte[] data = File.ReadAllBytes(scannedImage); // Add the new document into ImageQuest. IQDocument document = api.CreateDocument(token, metadata, scannedImage, data); api.AddNote(token, document.Id, "Customer invoice scanned into ImageQuest via API."); // Retrive the new document via IQQL and make it a purchase order. IQDocument[] documents = api.Search(token, "[CustomerNumber] = '105-B'", String.Empty); foreach ( IQDocumentAttribute attribute in documents[0].Metadata ) { if ( attribute.Name == "DocumentType" ) { attribute.Value = "PurchaseOrder"; } } api.UpdateDocument(token, documents[0]); }