GlobalX.ChatBots.WebexTeams 1.0.0-alpha5

This is a prerelease version of GlobalX.ChatBots.WebexTeams.
There is a newer version of this package available.
See the version list below for details.
dotnet add package GlobalX.ChatBots.WebexTeams --version 1.0.0-alpha5
NuGet\Install-Package GlobalX.ChatBots.WebexTeams -Version 1.0.0-alpha5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GlobalX.ChatBots.WebexTeams" Version="1.0.0-alpha5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GlobalX.ChatBots.WebexTeams --version 1.0.0-alpha5
#r "nuget: GlobalX.ChatBots.WebexTeams, 1.0.0-alpha5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GlobalX.ChatBots.WebexTeams as a Cake Addin
#addin nuget:?package=GlobalX.ChatBots.WebexTeams&version=1.0.0-alpha5&prerelease

// Install GlobalX.ChatBots.WebexTeams as a Cake Tool
#tool nuget:?package=GlobalX.ChatBots.WebexTeams&version=1.0.0-alpha5&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",
        "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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 929 1/26/2023
1.4.5 672 1/25/2023
1.4.4 944 7/19/2022
1.4.3 845 6/28/2022
1.4.2 1,095 2/18/2022
1.4.1 752 6/1/2021
1.3.2 1,594 9/1/2020
1.3.1 887 8/31/2020
1.3.0 1,081 8/6/2020
1.2.1 991 3/26/2020
1.2.0 1,036 1/30/2020
1.1.0 1,022 1/22/2020
1.0.0 992 9/23/2019
1.0.0-alpha6 804 9/6/2019
1.0.0-alpha5 805 8/7/2019
1.0.0-alpha4 827 8/5/2019
1.0.0-alpha3 807 8/4/2019
1.0.0-alpha2 806 8/4/2019
1.0.0-alpha 826 8/4/2019