简体   繁体   中英

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. This time I'm using the ask-cli to manage the uploads. So my basic process so far has been:

  1. "ask new" to create a starter skill and lambda
  2. "ask deploy" to create the Alexa skill and 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.

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.

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.

Does anyone know if and/or how to set account linking information using the ask-cli?

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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