Alexa 超出技能授权

Wol*_*res 0 alexa-skills-kit

我正在尝试访问 Alexa 列表技能,并根据https://developer.amazon.com/en-US/docs/alexa/custom-skills/get-a-user-specific-access-token.html#endpoint -without-account-linking这应该可以通过发送请求来实现。但不幸的是,该文档既没有说明请求应发送到的 URL,也没有说明方法(POS?)。有人可以帮我吗?我尝试过找到的各种 URL,目前正在使用 api.amazon.com/auth/O2/token,但这只是响应

<UnknownOperationException/>
Run Code Online (Sandbox Code Playgroud)

小智 5

创建列表技能不需要帐户链接。https://developer.amazon.com/en-US/docs/alexa/smapi/steps-to-create-a-list-skill.html#alexa-lists-access 您可以参考此文档如何将请求发送到列表管理 REST API。您还可以像您提到的那样发送会话外请求,而无需帐户链接。在这种情况下,您的技能应收到 Alexa.Authorization.Grant,并且请求中应包含身份验证代码。请参考示例。https://developer.amazon.com/en-US/docs/alexa/custom-skills/get-a-user-specific-access-token.html#example-without-account-linking

但是,如果您的技能需要侦听列表事件,则需要使用帐户链接。