This file contains hidden or 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
{ | |
"requestId": "ff36a3cc-ec34–11e6-b1a0–64510650abcf", | |
"inputs": [{ | |
"intent": "action.devices.EXECUTE", | |
"payload": { | |
"commands": [{ | |
"devices": [{ | |
"id": "123", | |
}], | |
"execution": [{ |
This file contains hidden or 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
{ | |
"requestId": "ff36a3cc-ec34–11e6-b1a0–64510650abcf", | |
"payload": { | |
"agentUserId": "1836.15267389", | |
"devices": [{ | |
"id": "123", | |
"type": "action.devices.types.WASHER", | |
"traits": [ | |
"action.devices.traits.Modes" | |
], |
This file contains hidden or 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
{ | |
"requestId": "ff36a3cc-ec34–11e6-b1a0–64510650abcf", | |
"payload": { | |
"agentUserId": "1836.15267389", | |
"devices": [{ | |
"id": "123", | |
"type": "action.devices.types.CAMERA", | |
"traits": [ | |
"action.devices.traits.Toggles" | |
], |
This file contains hidden or 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
'use strict'; | |
const fetch = require('isomorphic-fetch') | |
const delay = require('delay') | |
// Get Google Assistant code from https://github.com/googlesamples/assistant-sdk-nodejs | |
const {GoogleAssistant} = require('./google-assistant') | |
// Follow instructions in README to generate a credentials file and refer to it here | |
const assistant = new GoogleAssistant(require('./prod-credentials.json')) |
This file contains hidden or 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
{ | |
... | |
"engines": { | |
"node": "8" | |
}, | |
"dependencies": { | |
"actions-on-google": "^2.3.0", | |
"firebase-functions": "^2.0.0", | |
"firebase-admin": "^6.5.0" | |
... |
This file contains hidden or 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
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(functions.config().firebase); | |
const bucket = admin.storage().bucket(); | |
const bucketAccessConfig = { | |
action: 'read', | |
expires: Date.now() + 1000 * 60 * 60 | |
}; | |
const {dialogflow, Image, MediaObject} = require('actions-on-google'); |
This file contains hidden or 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
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(functions.config().firebase); | |
const bucket = admin.storage().bucket(); | |
const bucketAccessConfig = { | |
action: 'read', | |
expires: Date.now() + 1000 * 60 * 60 | |
}; | |
const {dialogflow} = require(‘actions-on-google’); |
This file contains hidden or 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
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
admin.initializeApp(functions.config().firebase); | |
const bucket = admin.storage().bucket(); | |
const bucketAccessConfig = { | |
action: 'read', | |
expires: Date.now() + 1000 * 60 * 60 | |
}; | |
const {dialogflow, BasicCard, Image} = require(‘actions-on-google’); |
This file contains hidden or 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
"outline": [{ | |
"Actions SDK": { | |
"Overview": "actionssdk", | |
"Conversation": "classes/actionssdk.actionssdkconversation", | |
"api/v2": "actionssdk_api_v2" | |
}, | |
"Dialogflow": { | |
"Overview": "dialogflow", | |
"Conversation": "classes/dialogflow.dialogflowconversation", | |
"api/v1": "dialogflow_api_v1", |
This file contains hidden or 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
"links": [{ | |
"label": "Guides", | |
"url": "https://developers.google.com/actions/extending-the-assistant" | |
}, { | |
"label": "Reference", | |
"url": "https://developers.google.com/actions/reference/nodejsv2/overview" | |
}, { | |
"label": "Codelabs", | |
"url": "https://developers.google.com/actions/codelabs/index" | |
}, { |
OlderNewer