Open mblaya opened 3 years ago
Being able to set the apiEndpoint when calling the SkillsGameOnApiClient constructor.
0.2.0
At the moment, the apiEndPoint is hardcoded - see the code below
Being able to set the apiEndPoint
export class SkillsGameOnApiClient extends GameOnApiClient { /** * Creates a new instance of SkillsGameOnApiClient * @param apiConfiguration */ constructor(apiConfiguration: ApiConfiguration = { apiClient: new DefaultApiClient(), apiEndpoint: 'https://api.amazongameon.com/v1' }) { super(apiConfiguration); }
I tried
const sdk = require('@alexa-games/skills-gameon-sdk'); const defaultClient = new sdk.SkillsGameOnApiClient( { apiClient: new sdk.DefaultApiClient(), apiEndpoint: 'https://api.amazongameon.com/v1' } );
but lambda function times out
Feature Request
Being able to set the apiEndpoint when calling the SkillsGameOnApiClient constructor.
Current SDK Version
0.2.0
Current Behavior
At the moment, the apiEndPoint is hardcoded - see the code below
Desired Behavior
Being able to set the apiEndPoint
Additional Information
I tried
but lambda function times out