UNPKG

botframework-connector

Version:

Bot Connector is autorest generated connector client.

29 lines (26 loc) 1.13 kB
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ServiceClientCredentials, ServiceClientContext } from 'botbuilder-stdlib/lib/azureCoreHttpCompat'; import { TeamsConnectorClientOptions } from './models'; /** * The Bot Connector REST API extension for Microsoft Teams allows your * bot to perform extended operations on the Microsoft Teams channel * configured in the [Bot Framework Developer Portal](https://dev.botframework.com). * The Connector service uses industry-standard REST and JSON over HTTPS. */ export class TeamsConnectorClientContext extends ServiceClientContext { /** * Initializes a new instance of the TeamsConnectorClientContext class. * * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ constructor(credentials: ServiceClientCredentials, options?: TeamsConnectorClientOptions) { super(credentials, { ...options, baseUri: options?.baseUri || 'https://api.botframework.com', }); } }