简体   繁体   English

可以使用Alexa ask-cli来设置帐户链接信息吗?

[英]Can the Alexa ask-cli be used to set account linking information?

I'm rewriting an Alexa skill that communicates with the Particle.io API. 我正在重写与Particle.io API通信的Alexa技能。 This time I'm using the ask-cli to manage the uploads. 这次,我使用Ask-CLI管理上传。 So my basic process so far has been: 因此,到目前为止,我的基本流程是:

  1. "ask new" to create a starter skill and lambda “问新”以创建入门技能和lambda
  2. "ask deploy" to create the Alexa skill and lambda “询问部署”以创建Alexa技能和lambda
  3. Run the new skill to verify the initial set of files work ok. 运行新技能以验证初始文件集可以正常工作。
  4. Modify the files created in the first step 修改第一步中创建的文件
  5. "ask deploy" to upload any changes “询问部署”以上传所有更改
  6. Loop back to step 3 to test, update, redeploy. 循环回到步骤3进行测试,更新和重新部署。

This is all working very nicely. 这一切都很好。 However, this skill needs to use account linking to allow the user to log into their Particle.io account in order for the skill to send commands to the user's IoT devices. 但是,此技能需要使用帐户链接来允许用户登录其Particle.io帐户,以便该技能将命令发送到用户的IoT设备。

I cannot find any information about adding Account Linking information to any of the files that "ask deploy" uploads. 我找不到有关将帐户链接信息添加到“询问部署”上载的任何文件的任何信息。 I am able to manually add the account linking information using the website, and that works correctly, but I'd really like to use the ask-cli so that my updates can be tracked on git. 我可以使用该网站手动添加帐户链接信息,并且可以正常运行,但是我真的很想使用ask-cli,以便可以在git上跟踪我的更新。

Does anyone know if and/or how to set account linking information using the ask-cli? 有谁知道是否和/或如何使用ask-cli设置帐户关联信息?

https://developer.amazon.com/docs/smapi/ask-cli-command-reference.html#create-account-linking-subcommand https://developer.amazon.com/docs/smapi/ask-cli-command-reference.html#create-account-linking-subcommand

Try this: 尝试这个:

ask-cli api --skill-id SOMESKILLID create-account-linking

It's an interactive method of setting up the account linking, there isn't a pure cli/data way to do it automatically unfortunately (yet). 这是设置帐户链接的一种交互式方法,不幸的是,还没有一种纯粹的cli / data方法可以自动进行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM