Skip to content

Instantly share code, notes, and snippets.

{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#54997C",
"@brand-success": "#54997C",
"@brand-info": "#5bc0de",
@standemchuk
standemchuk / example.js
Last active June 19, 2018 07:44
Example intent handler of Amazon Alexa request
async handle(handlerInput) {
const slotValue = handlerInput.requestEnvelope.request.intent.slots['requestReason'].value;
const response = await axios.post('https://google.com', {
"Param1": slotValue
});
if (response && response.status === 200) {
return handlerInput.responseBuilder
.speak('Ok, I\'ve notified the staff about your request')

Keybase proof

I hereby claim:

  • I am standemchuk on github.
  • I am standemchuk (https://keybase.io/standemchuk) on keybase.
  • I have a public key ASBryxUJQki_GfKVeNkhArYzkETGZ-op9YZgWhlt1jd5ogo

To claim this, I am signing this object: