Skip to content

Instantly share code, notes, and snippets.

@marcelobern
Created September 4, 2018 05:00
Show Gist options
  • Save marcelobern/fe44cee1dd5ed624e03b690a447e47fd to your computer and use it in GitHub Desktop.
Save marcelobern/fe44cee1dd5ed624e03b690a447e47fd to your computer and use it in GitHub Desktop.
Alexa SMAPI access token (Login with Amazon)

Before invoking SMAPI operations, it is necessary to obtain an access token from Login with Amazon to authenticate your request.

If you intend to use node-alexa-smapi you will need to retreive a refresh token, so here are a few ways to retrieve an initial refresh token:

Option 1 use ask util generate-lwa-tokens (for more information see: https://developer.amazon.com/docs/smapi/ask-cli-command-reference.html#util-command)

Option 2 use Postman to create an auth request and retrieve a token: 1- Under authorization select Type "OAuth 2.0" and click on "Get New Access Token". 2- Complete the form with the following data:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment