项目作者: mehtanilay10

项目描述 :
.Net SDK for Recast.ai Rest API. Create & Manage Bots by calling simple methods.
高级语言: C#
项目地址: git://github.com/mehtanilay10/RecastAI-.Net-SDK.git
创建时间: 2018-08-16T16:30:33Z
项目社区:https://github.com/mehtanilay10/RecastAI-.Net-SDK

开源协议:

下载


RecastAI-.Net-SDK

Basic RecastAI .Net SDK for NPL.
Currently it supports Methods for Bots, Intents, and Expressions. Feel free to extend this library by adding other methods for NPL, Bot Builder, and Bot Connector.

Create Client

To create client you need to pass token and slug for user on which you are goung to perform all operations.

  1. // Create Helper Instance
  2. RecastAIHelper.RecastAIClient client = new RecastAIHelper.RecastAIClient(token, userSlug);

Using Client

After creating client, you can call appropriate method by passing required parameters.

  1. // Retrieve all bots of specific user
  2. IReadOnlyCollection<RecastBotLight> bots = await client.GetAllBotsAsync();
  3. // Retrieve Intent pagewise
  4. IReadOnlyCollection<Intent> intentsPageWise = await client.GetIntentsPagewiseAsync(botSlug, 1, 2);
  5. // Create new Intent
  6. intent = await client.CreateIntentAsync(botSlug, "intentSlug", "description", new List<Expression> {
  7. new Expression("Hello From SDK", "en")
  8. });

Recast API: https://recast.ai/docs/api-reference

Use of other Metohds: https://github.com/mehtanilay10/RecastAI-.Net-SDK/blob/master/RecastAIHelperUse/Program.cs