Alexa Remainder API(REST API)-无效的承载令牌

问题描述 投票:1回答:1

我正在尝试通过POSTMan向我的技能发送警报/余数。

选项1:范围为“ alexa:skill_messaging”]]的身份验证令牌API

POST /auth/o2/token HTTP/1.1
Host: api.amazon.com
Content-Type: application/x-www-form-urlencoded
User-Agent: PostmanRuntime/7.20.1
Accept: */*
Cache-Control: no-cache
Postman-Token: 2ae7afa3-c3f8-493f-b6e3-2db1e44e3a17,a4e45e8e-d0eb-4b3f-a612-e7d1959fdbe6
Host: api.amazon.com
Accept-Encoding: gzip, deflate
Content-Length: 236
Connection: keep-alive
cache-control: no-cache

grant_type=client_credentials&client_id=******************&client_secret=***********17a4f7b348982bdb4&scope=alexa%3Askill_messaging

截屏:enter image description here

选项2:

具有范围“ alexa :: alerts:reminders:skill:readwrite”的身份验证令牌API
POST /auth/o2/token HTTP/1.1
Host: api.amazon.com
Content-Type: application/x-www-form-urlencoded
User-Agent: PostmanRuntime/7.20.1
Accept: */*
Cache-Control: no-cache
Postman-Token: 2ae7afa3-c3f8-493f-b6e3-2db1e44e3a17,c6765f77-6e35-419f-b614-780dae20ad4e
Host: api.amazon.com
Accept-Encoding: gzip, deflate
Content-Length: 236
Connection: keep-alive
cache-control: no-cache

grant_type=client_credentials&client_id=**************************&client_secret=************************&scope=alexa%3A%3Aalerts%3Areminders%3Askill%3Areadwrite

enter image description here

步骤2:

使用范围“ alexa:skill_messaging”生成的令牌提交警报请求,并获得无效承载者令牌

enter image description here

让我知道我是否缺少任何内容,以及在哪里可以找到Alexa Authenictaion令牌API的不同范围

我正在尝试通过POSTMan将警报/余数发送给我。选项1:范围为“ alexa:skill_messaging”的身份验证令牌API POST / auth / o2 / token HTTP / 1.1主机:api.amazon.com内容类型:...

alexa alexa-skills-kit alexa-app
1个回答
0
投票

很遗憾,

© www.soinside.com 2019 - 2024. All rights reserved.