node-nlp
Version:
Library for NLU (Natural Language Understanding) done in Node.js
39 lines (30 loc) • 1.21 kB
text/typescript
/*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
import * as msRest from "ms-rest-js";
import * as Models from "./models";
const packageName = "botframework-Token";
const packageVersion = "4.0.0";
export class TokenApiClientContext extends msRest.ServiceClient {
credentials: msRest.ServiceClientCredentials;
/**
* Initializes a new instance of the TokenApiClientContext class.
* @param credentials Subscription credentials which uniquely identify client subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, options?: Models.TokenApiClientOptions) {
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}`);
}
}