【发布时间】:2017-11-21 12:04:10
【问题描述】:
我只想让 API 与 ALEXA 购物/待办事项列表同步。
在尝试使用标准文档来了解如何从默认购物清单中获取 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 所以我很困惑。我只是尝试做下图中的第一部分,不需要任何用户信息。
【问题讨论】:
标签: curl alexa alexa-skills-kit