Skip to the content.

The project for use Dbrain.io Api and Handl.ai.

For install use the nuget package .

dotnet add package DbrainApi

Basic methods

For example:

void Execute()
{
    Console.WriteLine("Write token:");
    var token = Console.ReadLine();

    if (string.IsNullOrWhiteSpace(token)) 
        return;

    Console.WriteLine("Write path to file:");
    var path = Console.ReadLine();

    if (string.IsNullOrWhiteSpace(path)) 
        return;
    if (!File.Exists(path)) 
        return;

    var content = File.ReadAllBytes(path);
    var json = new DbrainApi.DbrainApi(token).Classify(content);

    Console.WriteLine(json);
}