我目前正在努力将Amazon Alexa与我们当前的系统集成。我要做的TL; DR版本是,我应该能够通过Alexa Skill Management API以编程方式创建Alexa技能。
尽管这非常简单,但我在身份验证阶段遇到了障碍(涉及到“使用亚马逊登录”):
这应该起作用的方式是,您对SMAPI端点进行的每个请求都必须在AuthorizationHTTP标头中包含授权令牌。
假设我https://api.amazonalexa.com/v0/skills对此主体发出POST请求:
{
"vendorId":"my-vendor-id",
"skillManifest": {
"publishingInformation": {
"locales": {
"en-US": {
"summary": "This is a sample Alexa skill.",
"examplePhrases": [
"Alexa, open sample skill.",
"Alexa, turn on kitchen lights.",
"Alexa, blink kitchen lights."
],
"keywords": [
"Smart Home",
"Lights",
"Smart Devices"
],
"name": "Sample custom skill name.",
"description": "This skill has basic and advanced smart devices control features."
}
},
"isAvailableWorldwide": false,
"testingInstructions": "1) Say 'Alexa, discover my …Run Code Online (Sandbox Code Playgroud)