Note that you’ll need to authenticate for every request using a Bearer token obtained with a request to ABBYY FlexiCapture application server. Only Administrator or Monitoring Operator for the tenant may access this tenant’s data.You can also see API description at http://localhost:8002 on any machine where ABBYY FlexiCapture Reporting service data access is installed.Here is a code sample that shows how to download a reporting statistics archive for the specified tenant and time, authenticating with an ABBYY FlexiCapture account.
Sample code (PowerShell)
# Downloads an archive with reporting statistics for the specified tenant
# Use the tenant name and the application server address passed in the function parameters$URI = "https://$AppServer/Flexicapture12/Server/FCAuth/API/wsdl?Tenant=$TenantName"# Create a PSCredential object with the given username and password
$creds = New-Object System.Management.Automation.PSCredential -ArgumentList @($user,(ConvertTo-SecureString -String $password -AsPlainText -Force))# Create a proxy web service that will authenticate with these credentials$proxy = New-WebServiceProxy -Uri $URI -Credential $creds
# Create a request with Bearer authentication header containing the token# and send it to Reporting data access service to get the archive for the specified tenant and period