Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 924 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 924 Bytes

wit-dotnet

wit-dotnet is the .NET SDK for Wit.ai.

Install

From source:

git clone https://github.com/husaft/wit-dotnet
dotnet build

Usage

See the examples folder for examples.

API

Wit class

The Wit constructor takes the following parameters:

  • accessToken - the access token of your Wit instance

A minimal example looks like this:

using Wit;

var client = new WitClient(accessToken);
client.GetMeaning("set an alarm tomorrow at 7am");

Logging

You can also specify a custom logger object in the Wit constructor:

using Wit;
var client = new WitClient(accessToken, customLogger);

See the Extensions Logging module docs for more information.

License

The license for this project can be found in LICENSE file in the root directory of this source tree.