GlobalX.ChatBots.WebexTeams
1.0.0
See the version list below for details.
dotnet add package GlobalX.ChatBots.WebexTeams --version 1.0.0
NuGet\Install-Package GlobalX.ChatBots.WebexTeams -Version 1.0.0
<PackageReference Include="GlobalX.ChatBots.WebexTeams" Version="1.0.0" />
paket add GlobalX.ChatBots.WebexTeams --version 1.0.0
#r "nuget: GlobalX.ChatBots.WebexTeams, 1.0.0"
// Install GlobalX.ChatBots.WebexTeams as a Cake Addin #addin nuget:?package=GlobalX.ChatBots.WebexTeams&version=1.0.0 // Install GlobalX.ChatBots.WebexTeams as a Cake Tool #tool nuget:?package=GlobalX.ChatBots.WebexTeams&version=1.0.0
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",
"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",
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",
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- AutoMapper (>= 9.0.0)
- GlobalX.ChatBots.Core (>= 1.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.1.1)
- Microsoft.Extensions.Http (>= 2.1.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 2.1.1)
- 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 | 978 | 1/26/2023 |
1.4.5 | 704 | 1/25/2023 |
1.4.4 | 986 | 7/19/2022 |
1.4.3 | 897 | 6/28/2022 |
1.4.2 | 1,131 | 2/18/2022 |
1.4.1 | 790 | 6/1/2021 |
1.3.2 | 1,630 | 9/1/2020 |
1.3.1 | 918 | 8/31/2020 |
1.3.0 | 1,126 | 8/6/2020 |
1.2.1 | 1,026 | 3/26/2020 |
1.2.0 | 1,073 | 1/30/2020 |
1.1.0 | 1,060 | 1/22/2020 |
1.0.0 | 1,029 | 9/23/2019 |
1.0.0-alpha6 | 835 | 9/6/2019 |
1.0.0-alpha5 | 846 | 8/7/2019 |
1.0.0-alpha4 | 859 | 8/5/2019 |
1.0.0-alpha3 | 844 | 8/4/2019 |
1.0.0-alpha2 | 838 | 8/4/2019 |
1.0.0-alpha | 854 | 8/4/2019 |