获取Amazon Echo设备的位置/地址 [英] Get location/address of Amazon Echo device

查看:88
本文介绍了获取Amazon Echo设备的位置/地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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.

https://www.amazon.com/gp/help/customer/display.html?nodeId= 201601980 说我们可以访问有关Echo的许多详细信息,例如设备位置,但就我所知,我在该会话中看不到此信息:

https://www.amazon.com/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设备的位置/地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆