我正在使用Alexa技能,需要将正在使用的Echo的位置发送到我的Lambda函数中的API。
I am making an Alexa skill which needs to send the location of the Echo being used to an API within my Lambda function.
www.amazon/gp/help/customer/display.html?nodeId= 201601980 说我们可以访问有关Echo的许多详细信息,例如设备位置,但就我所知,我在该会话中看不到此信息:
www.amazon/gp/help/customer/display.html?nodeId=201601980 says we can access many details about the Echo, such as Device Location, but in my skill, I don't see this is available in the session:
exports.handler = function (event, context) { try { console.log("event.session: " + event.session);如何获取此数据?
重点是,虽然我们有来自我的App API的用户地址,但他们可能已将其当前不在的地址设置为(也就是,已经从回音发出了一个与其地址不同的订单)。
The point is, while we have the address of the user coming from my App API, they may have set an address where they're not currently at (aka, they've placed an order from an Echo that's not the same as their address).
谢谢!
推荐答案对个人资料信息的访问似乎不可用。如果该帐户已链接,则我看到的唯一选择是将它们路由回您的网站,以提供完成订单所需的信息。
Access to the profile information doesn't appear to be available. If the account is linked, the only option I see is to route them back to your web site to provide information necessary to complete the order.
更多推荐
获取Amazon Echo设备的位置/地址
发布评论