Saga Documentation 0.9.434-4

Bots

Create Bot

string[] tags = new String[]{"tag1", "tag2"};

var result = await client.Bot.Create("name", testData: true, tags);
if (result.IsSuccess) {
    Bot bot = result.Data;
}

Get Bot

By Id

var result = await client.Bot.GetById("5db0acbc46d06a0089c1f06b");
if (result.IsSuccess) {
    Bot bot = result.Data;
}

By Name

var result = await client.Bot.GetByName("BotName");
if (result.IsSuccess) {
    Bot bot = result.Data;
}

Subscribing and Unsubscribing

var result = await client.Bot.Subscribe("5db0acbc46d06a0089c1f06b");
if (result.IsSuccess) {...}
var result = await client.Bot.Unsubscribe("5db0acbc46d06a0089c1f06b");
if (result.IsSuccess) {...}