botframework-connector
Version:
Bot Connector is autorest generated connector client.
33 lines • 1.36 kB
JavaScript
;
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamsConnectorClientContext = void 0;
const core_http_1 = require("@azure/core-http");
/**
* 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.
*/
class TeamsConnectorClientContext extends core_http_1.ServiceClient {
/**
* Initializes a new instance of the TeamsConnectorClientContext class.
*
* @param credentials Subscription credentials which uniquely identify client subscription.
* @param [options] The parameter options
*/
constructor(credentials, options) {
if (!options) {
options = {};
}
super(credentials, options);
this.baseUri = options.baseUri || this.baseUri || 'https://api.botframework.com';
this.requestContentType = 'application/json; charset=utf-8';
this.credentials = credentials;
}
}
exports.TeamsConnectorClientContext = TeamsConnectorClientContext;
//# sourceMappingURL=teamsConnectorClientContext.js.map