const {{{moduleName}}} = require('{{{projectName}}}');
{{#hasParams}}
{{#vendorExtensions.x-codegen-isCreateAttachmentForObject}}
const fs = require("fs");
{{/vendorExtensions.x-codegen-isCreateAttachmentForObject}}
{{/hasParams}}

{{#hasAuthMethods}}
let client = {{{moduleName}}}.ApiClient.instance;{{#authMethods}}{{#isBasic}}
// Configure HTTP basic authorization: {{{name}}}
let {{{name}}} = client.authentications['{{{name}}}'];
{{{name}}}.username = 'YOUR USERNAME';
{{{name}}}.password = 'YOUR PASSWORD';{{/isBasic}}{{#isApiKey}}
// Configure API key authorization: {{{name}}}
let {{{name}}} = client.authentications['{{{name}}}'];
{{{name}}}.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//{{{name}}}.apiKeyPrefix = 'Token';{{/isApiKey}}{{#isOAuth}}
// Configure OAuth2 access token for authorization: {{{name}}}
let {{{name}}} = client.authentications['{{{name}}}'];
{{{name}}}.accessToken = '<YOUR_ACCESS_TOKEN>';{{/isOAuth}}{{#isBearer}}
let token = client.authentications['token'];
token.accessToken = '<YOUR_ACCESS_TOKEN>';{{/isBearer}}
{{/authMethods}}
{{/hasAuthMethods}}