Field | Description |
---|---|
Do you allow users to create an account or link to an existing account with you? | Select |
Field | Description |
---|---|
Do you allow users to create an account or link to an existing account with you? | Select |
Field | Description |
---|---|
Do you allow users to create an account or link to an existing account with you? | Select |
Field | Description |
---|---|
Do you allow users to create an account or link to an existing account with you? | Select |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add this code inside your Intent Handler | |
if (handlerInput.requestEnvelope.context.System.user.accessToken !== undefined) { | |
accessToken = handlerInput.requestEnvelope.context.System.user.accessToken; | |
try { | |
var tokenOptions = buildHttpGetOptions(accessToken); | |
var response = await httpGet(tokenOptions); | |
console.log({ response }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (handlerInput.requestEnvelope.context.System.user.accessToken === undefined) { | |
return handlerInput.responseBuilder | |
.speak("to start using this skill, please use the companion app to authenticate") | |
.reprompt("to start using this skill, please use the companion app to authenticate") | |
.withLinkAccountCard() | |
.getResponse(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"body": { | |
"version": "1.0", | |
"response": { | |
"outputSpeech": { | |
"type": "SSML", | |
"ssml": "<speak>hello and welcome to game skill ! Say help to hear some options.</speak>" | |
}, | |
"card": { | |
"type": "Standard", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Place this inside the getnewfacthandler code inside the handler function | |
const request = handlerInput.requestEnvelope.request; | |
// SLOT: planet | |
if (request.intent.slots.planet && | |
request.intent.slots.planet.value && | |
request.intent.slots.planet.value !== '?' | |
) { | |
const planet = request.intent.slots.planet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable func-names */ | |
/* eslint-disable no-console */ | |
// IMPORTANT: Please note that this template uses Dispay Directives, | |
// Display Interface for your skill should be enabled through the Amazon developer console | |
// See this screenshot - https://alexa.design/enabledisplay | |
const Alexa = require('ask-sdk'); | |
const GetNewFactHandler = { | |
canHandle(handlerInput) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IMPORTANT: Display Interface for your skill should be enabled through the Amazon developer console | |
// See this screenshot - https://alexa.design/enabledisplay | |
/* HELPER FUNCTIONS */ | |
// returns true if the skill is running on a device with a display (show|spot) | |
function supportsDisplay(handlerInput) { | |
var hasDisplay = | |
handlerInput.requestEnvelope.context && | |
handlerInput.requestEnvelope.context.System && |
NewerOlder