Search Suggestions
ESP32 结合 Alexa 智能家具套件开发过程

ESP32 结合 Alexa 智能家具套件开发过程

TONYLABS 10 Mar, 2019
  • 55
  • 0

Login with Amazon (LWA) 服务

使用 LWA 服务,实现OAuth 用户登录。https://developer.amazon.com/loginwithamazon/console/site/lwa/overview.html

  1. 打开 https://developer.amazon.com/login.html 并登录你的 Amazon 账户
  2. 点击 “Apps & Services”, 然后 “Login with Amazon”
  3. 点击 “Create a New Security Profile” 创建安全档案
  4. Fill in all three required fields to create your security profile and click “Save”.
  5. Before you complete this step, be sure to click on the link named “Show Client ID and Client Secret” and save these values to a secure location so they're easily available later. You’ll need these values later in a future step.

创建技能

 

创建 Lambda 功能

 

配置技能

Now that you have all the components, let's put everything together. These steps assume you're using LWA for account linking:

  1. Go back to https://developer.amazon.com/home.html and sign in as needed
  2. Go to Alexa > Alexa Skills Kit > the test skill you created earlier
  3. In the Configuration tab:
    • Lambda ARN default = enter your Lambda ARN noted from the previous step
    • Authorization URI = https://www.amazon.com/ap/oa
    • Client ID = your client ID from LWA noted in a previous step
    • Scope: profile (click Add Scope first to add)
    • Access Token URI: https://api.amazon.com/auth/o2/token
    • Client Secret: your client secret from LWA noted in a previous step
    • Client Authentication Scheme: HTTP Basic (Recommended)
    • Click Save
  4. Provide Redirect URL's to LWA:
    • The Configuration page for your Skill lists several Redirect URL's. Open the LWA security profile you created earlier and visit the Web Settings dialog. Provide each of the Redirect URL values from your Skill in the Allowed Return URL's field.

 


相关商品

HUZZAH32 ESP32 Feather

HUZZAH32 ESP32 Feather

120.00
Amazon Alexa Echo Dot 智能语音助理音箱

Amazon Alexa Echo Dot 智能语音助理音箱

399.00

订阅并保持联系

输入您的电子邮箱即可在第一时间获得 TONYLABS 资讯