alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 737 forks source link

API docs sample code is not using the ASK SDK utils #613

Closed germanviscuso closed 3 years ago

germanviscuso commented 4 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Other... Please describe:

In this page https://developer.amazon.com/en-US/docs/alexa/alexa-skills-kit-sdk-for-nodejs/develop-your-first-skill.html all the code samples are not suing the ASK SDK Utilities. In most handlers you could use:

Alexa.getRequestType(handlerInput.requestEnvelope)
Alexa.getIntentName(handlerInput.requestEnvelope)

in the canHandle()

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Node.js and NPM Info

ShenChen93 commented 4 years ago

Hi @germanviscuso ,

Thanks for reporting those doc issues. Will reach out to doc team to update the doc !

Thanks, Shen

hideokamoto commented 4 years ago

Is the doc's code is OpenSource? If yes, we can create a new Pull Request to update it.

Thanks. @ShenChen-Amazon

ShenChen93 commented 4 years ago

@hideokamoto

Nah, the doc is not OpenSource. Let me check with doc team for updates.

Thanks, Shen

ShenChen93 commented 3 years ago

The doc is now updated after long delay, thanks again for posting the issue and being patient. Closing this issue now :)