.Net Library
The IndicinaDecideLibraryPackage is a C# library that provides functionality to analyze different types of bank statements, such as PDF, CSV, and JSON statements. It integrates with the Indicina Decide API to perform statement analysis and retrieve analysis results.
Features
Supports PDF, CSV, and JSON statement analysis.
Retrieves authorization access token for API authentication.
Sends API requests to initiate statement analysis.
Monitors the status of PDF statement analysis.
Parses analysis results into a standardized format.
Requirements
.NET Core 7.0 or later
Installation
Installing Via Nuget
Shell
NuGet\Install-Package IndicinaDecideLibraryPackage -Version 0.1.0
Installing via the .NET Core command line interface
Shell
dotnet add package IndicinaDecideLibraryPackage --version 0.1.0
Usage
Add a using statement for the IndicinaDecideLibrary
Shell
using IndicinaDecideLibrary;
Create a DecideAuth instance, passing your credentials.
Shell
Create a DecideAPI instance.
Shell
Define necessary parameters needed as per the statement type (JSON, PDF, CSV)
Call the necessary method as related to your statement type.
AnalyzeJson
AnalyzeCSV
InitiatePdfAnalysis
GetPdfAnalysisResult
Retrieve and process the analysis results returned by the library.
Here's an example of using the library to analyze a PDF statement:
N:B PDF Analysis are not provided instantly, you get a job_id when you initiate the analysis You can then use this job_id to monitor the status of the pdf analysis Job
Shell
And here's an example of using the library to analyze a CSV statement:
Shell
And here's an example of using the library to analyze a JSON statement:
Shell
Running Analysis with ScoreCard
You can run a statement analysis with scorecard ids you have created as described below.
Shell
Make sure to replace Bank.Access, customer, Currency.NGN, filePath, password, csvPath, format, and statementString with the appropriate values for your use case.