How to use the ask-smapi-model.services.skillManagement function in ask-smapi-model

To help you get started, we’ve selected a few ask-smapi-model examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexa / alexa-skills-kit-sdk-for-nodejs / ask-smapi-sdk / lib / smapiClientBuilder / SmapiClientBuilder.ts View on Github external
this.apiClient = new DefaultApiClient();
        }

        if (this.refreshTokenConfig) {
            const apiConfiguration : ApiConfiguration = {
                apiClient: this.apiClient,
                apiEndpoint: this.apiEndpoint,
                authorizationValue: null,
            };
            const authenticationConfiguration : AuthenticationConfiguration = {
                clientId: this.refreshTokenConfig.clientId,
                clientSecret: this.refreshTokenConfig.clientSecret,
                refreshToken: this.refreshTokenConfig.refreshToken,
            };

            return new services.skillManagement.SkillManagementServiceClient(apiConfiguration, authenticationConfiguration, this.customUserAgent);
        }

        throw new Error('Please provide refreshToken Config to build smapi client');
    }
}

ask-smapi-model

Model package for Skill Management API (SMAPI) SDK

Apache-2.0
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis

Popular ask-smapi-model functions