GlobalX.ChatBots.WebexTeams
1.0.0-alpha4
See the version list below for details.
dotnet add package GlobalX.ChatBots.WebexTeams --version 1.0.0-alpha4
NuGet\Install-Package GlobalX.ChatBots.WebexTeams -Version 1.0.0-alpha4
<PackageReference Include="GlobalX.ChatBots.WebexTeams" Version="1.0.0-alpha4" />
paket add GlobalX.ChatBots.WebexTeams --version 1.0.0-alpha4
#r "nuget: GlobalX.ChatBots.WebexTeams, 1.0.0-alpha4"
// Install GlobalX.ChatBots.WebexTeams as a Cake Addin #addin nuget:?package=GlobalX.ChatBots.WebexTeams&version=1.0.0-alpha4&prerelease // Install GlobalX.ChatBots.WebexTeams as a Cake Tool #tool nuget:?package=GlobalX.ChatBots.WebexTeams&version=1.0.0-alpha4&prerelease
GlobalX.ChatBots.WebexTeams
A .NET Core library containing implementations of core interfaces of GlobalX.ChatBots.Core for Webex Teams.
Getting started
Configuration
In order to use this bot, some configuration is required. This can either be done through appsettings.json, or at the time of configuring the bot.
Example Configuration
// In appsettings.json
{
"GlobalX.ChatBots.WebexTeams": {
"WebexTeamsApiUrl": "https://api.ciscospark.com/v1",
"BotAuthToken": "token",
"Webhooks": [
{
"Name": "name",
"TargetUrl": "https://fake-url.com",
"Resource": "Messages",
"Event": "Created",
"Filter": "mentionedPeople=me"
}
]
}
}
Using Dependency Injection
In the ConfigureServices
method of your Startup.cs
file, add the following:
using GlobalX.ChatBots.WebexTeams;
public IServiceProvider ConfigureServices(IServiceCollection services)
{
// Add other service registrations here
services.ConfigureWebexTeamsBot(Configuration);
return services;
}
If you have not provided your configuration inside appsettings.json, you may do so when you configure the bot:
using GlobalX.ChatBots.WebexTeams;
using GlobalX.ChatBots.WebexTeams.Configuration;
public IServiceProvider ConfigureServices(IServiceCollection services)
{
// Add other service registrations here
var settings = new WebexTeamsSettings
{
WebexTeamsApiUrl = "https://api.ciscospark.com/v1",
BotAuthToken = "token",
Webhooks = new[]
{
new Webhook
{
Name = "name",
TargetUrl = "https://fake-url.com",
Resource = ResourceType.Messages,
Event = EventType.Created,
Filter = "mentionedPeople=me"
}
}
};
services.ConfigureWebexTeamsBot(settings);
}
To start the webhooks, put the following in your Configure
method.
public void Configure (IApplicationBuilder app, IHostingEnvironment env)
{
// other configuration code here
app.ApplicationServices.GetService<IWebhookHelper>().Webhooks.RegisterWebhooksAsync();
}
Without Dependency Injection
You can get a webex teams implementation of the library by calling the
WebexTeamsChatHelperFactory.CreateWebexTeamsChatHelper
method.
using GlobalX.ChatBots.Core;
using GlobalX.ChatBots.WebexTeams;
using GlobalX.ChatBots.WebexTeams.Configuration;
// Some code here
var settings = new WebexTeamsSettings
{
WebexTeamsApiUrl = "https://api.ciscospark.com/v1",
BotAuthToken = "token"
};
WebexTeamsChatHelper webexTeamsChatHelper = WebexTeamsChatHelperFactory.CreateWebexTeamsChatHelper(settings);
webexTeamsChatHelper.Webhooks.RegisterWebhooksAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- Automapper (>= 8.1.1)
- GlobalX.ChatBots.Core (>= 1.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Http (>= 2.2.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 2.2.0)
- Newtonsoft.Json (>= 12.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.4.6 | 964 | 1/26/2023 |
1.4.5 | 696 | 1/25/2023 |
1.4.4 | 976 | 7/19/2022 |
1.4.3 | 887 | 6/28/2022 |
1.4.2 | 1,121 | 2/18/2022 |
1.4.1 | 777 | 6/1/2021 |
1.3.2 | 1,620 | 9/1/2020 |
1.3.1 | 908 | 8/31/2020 |
1.3.0 | 1,116 | 8/6/2020 |
1.2.1 | 1,014 | 3/26/2020 |
1.2.0 | 1,062 | 1/30/2020 |
1.1.0 | 1,050 | 1/22/2020 |
1.0.0 | 1,019 | 9/23/2019 |
1.0.0-alpha6 | 828 | 9/6/2019 |
1.0.0-alpha5 | 840 | 8/7/2019 |
1.0.0-alpha4 | 853 | 8/5/2019 |
1.0.0-alpha3 | 837 | 8/4/2019 |
1.0.0-alpha2 | 832 | 8/4/2019 |
1.0.0-alpha | 847 | 8/4/2019 |