我只想要一个API与ALEXA Shopping / Todo列表同步。
尝试使用标准文档如何从默认购物清单中获取Alexa列表数据后,我收到一条错误消息,表示只有在不使用范围scope=alexa:skill_messaging
curl -k -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=client_credentials&client_id=<redacted-id>&client_secret=<redacted-secret>&scope=alexa:skill_messaging' https://api.amazon.com/auth/O2/token
我收到以下错误
{"error_description":"The request has an invalid parameter : scope","error":"invalid_scope"}
帮助部分说,INVALID_SCOPE The requested scope is invalid, which means it is not alexa:skill_messaging.
这没有任何意义,因为书中确切地说它应该是什么。
这一切都直接来自文档,https://developer.amazon.com/docs/custom-skills/access-the-alexa-shopping-and-to-do-lists.html#request-format所以我很困惑。我只想尝试下图所示的第一部分,不需要任何用户信息。
答案 0 :(得分:0)
首先,您必须进入手机上的Alexa应用,并让该技能同意访问您的列表Allow access to my shopping list
。
然后您可以使用图片中描述的流程来获取同意令牌,然后我进入技能控制台,并从与我的个人帐户绑定的测试请求中获取同意令牌,并在其中使用了该同意令牌。我的alexa应用。
您可以在https://github.com/fergyfresh/deelist上获得该应用