Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AlexaSKill Test Framwork in Case of custom webhook (hosted in my server) #47

Open
saileshemitrr opened this issue May 11, 2019 · 0 comments

Comments

@saileshemitrr
Copy link

Hello everyone, wanted to know what to pass for index for

alexaTest.initialize(index, appId, userId, deviceId)`

I am using my custom webhook using NodeJS.
app.js -> router using alexa-verifer-middleware
app.use('/alexa', require('./routes/alexa'));

routes/alexa
router.post('/podcast', function(req, res) { const handlers = require('../handlers/alexaHandler'); if (!skill) { skill = Alexa.SkillBuilders.custom() .addRequestHandlers( handlers.LaunchRequestHandler, handlers.HelpHandler..... ).create();

handler/alexaHandler -> where all the functions are maintained like LaunchRequestHandlers and HelpIntent.

Please advice. Code is working fine but as it is becoming more complex planning to use a testing framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant