UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

32 lines 1.29 kB
"use strict"; /* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ Object.defineProperty(exports, "__esModule", { value: true }); const msRest = require("ms-rest-js"); const packageName = "botframework-Token"; const packageVersion = "4.0.0"; class TokenApiClientContext extends msRest.ServiceClient { /** * Initializes a new instance of the TokenApiClientContext class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param [options] The parameter options */ constructor(credentials, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); } if (!options) { options = {}; } super(credentials, options); this.baseUri = options.baseUri || this.baseUri || "https://token.botframework.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.addUserAgentInfo(`${packageName}/${packageVersion}`); } } exports.TokenApiClientContext = TokenApiClientContext; //# sourceMappingURL=tokenApiClientContext.js.map