/
Geodi Data Extraction API - Single Content Recognition Method
Geodi Data Extraction API - Single Content Recognition Method
A Token can be got by Generating a GEODI Token .
RecognizeContent | |
---|---|
Definition | Returns entries found by scanners in the current workspace from a content sent by the user to GEODI. |
Request | [GEODIURL]/DataExtractionHandler?op=RecognizeContent&wsName=[WSNAME]&content=[ContentJson]&UserSession=[TOKEN]
|
Request 2 | [GEODIURL]/DataExtractionHandler?op=RecognizeContent&wsName=[WSNAME]&fileName=[FileName]&UserSession=[TOKEN] filename and content can be sent as bytes [] Request Url: [GEODIURL]/DataExtractionHandler?op=RecognizeContent&wsName=PROJE&fileName=myProj.doc Request HTTP HEADER : Content-Length:1740 Request : 1740 byte[] Content |
HttpMethod | GET, POST |
Expected Errors | 401 Unauthorized access / Access denied 403 Forbidden 511 Network Authentication Required 501 Server Error |
Returning Value | { "ElapsedMilliseconds":0, "Entries": [ { "OriginalText":"", "Text":"", "StartIndex":0, "Length":1, "Filter":null } ] }
|
Example 1 | Request : [GEODIURL]/DataExtractionHandler?op=RecognizeContent { wsName: "PROJECT" content : { ContentURL : '~/MyApplication/Content.php?id=1465', DisplayName:'Control list document', ContentDate:'Mon, 04 May 2015 07:38:28 GMT', ViewURL : '~/MyApplication/ContentView.php?id=1465' } UserSession: "..." } |
Example 2 | <input id="myFile" type="file"> <script> var GEODIURL="..."; var Token="..." var wsName="..."; function RecognizeMyFile() { var fileData = $("#myFile")[0].files[0]; var url = GEODIURL + "/DataExtractionHandler?op=RecognizeContent"; url += "&fileName=" + UrlEncode(fileData.name); url += "&wsName=" + UrlEncode(wsName); url += "&UserSession=" + UrlEncode(Token); $.ajax({ url: url, type: "POST", data: fileData, cache: false, contentType: false, processData: false, crossDomain: true, timeout:300000, success: function(data) { /// Response }}); } </script> |
Example applications |