alexa-js / alexa-app-server

An Alexa app server for alexa-app.
MIT License
401 stars 116 forks source link

Support additional request properties in test page #88

Closed martincostello closed 7 years ago

martincostello commented 7 years ago

Relates to alexa-js/alexa-app#226.

Add support for setting the value of additional request properties in the test page.

  1. accessToken for skills which support account linking.
  2. deviceId and consentToken for skills which support the Device Address API.
  3. apiEndpoint, which is set to the values specified in the documentation based on the current locale. This also supports the Device Address API.

The timestamp property of the request is now also updated to the current date and time when the requests are loaded and posted.

martincostello commented 7 years ago

I'm not sure why the Travis CI build is failing just for node 0.12.

dblock commented 7 years ago

See https://github.com/alexa-js/alexa-app/pull/220 for node 0.12 issues, you should remove it (with a changelog line) as these libraries are no longer compatible with that.

dblock commented 7 years ago

Good stuff, thanks! Fix the build, see my minor comments and this is good to go.

martincostello commented 7 years ago

I've updated the code as requested. I checked the Amazon docs and the trailing / was inconsistent there, so I've just put it on both.