获取Amazon Echo设备的位置/地址

编程入门 行业动态 更新时间:2024-10-08 20:38:17
本文介绍了获取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.

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设备的位置/地址

本文发布于:2023-11-28 08:17:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641635.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位置   地址   设备   Amazon   Echo

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!