minicodemonkey / amazon-alexa-php Goto Github PK
View Code? Open in Web Editor NEWAmazon Alexa PHP Library
Amazon Alexa PHP Library
The fork by @KoRa88 currently has all the necessary validation tools, could it be merged here so users don't discover an incomplete toolkit via Composer?
Throughout seemingly all of this library, the Amazon App ID is defined in either the variable or a property called "applicationId". I noticed some areas where it was called "applicationid" instead, as well a few instances where it was missing as an argument:
IntentRequest.php
Line 9/10 - Missing $applicationId as 2nd argument in __construct function.
Request.php
Line 94 - Missing $this->applicationId as 2nd argument in new Request class creation.
These were reported in my Drupal 8 error logs while I build an Alexa integration app. I am new to this library though, so if I am incorrectly reporting this as an issue for some reason, please let me know so I can correct this.
The alexa testing tool now sends unix timestamp as timestamp in request rather than formatted date. which causes failed to parse string exception and crashes the application.
I've used this library to successfully publishing a skill in the store. For this, I've added full validation and modified response status to 400 on Exception. Furthermore, I've also reduced the timestamp validation time to 15 seconds, I'm not sure if it's required but with this modification amazon has acceppted the skill. Attached you find my modified Request.php, may you want to push it into the library., I'm too lazy to setup git ;)
Thanks for providing this library and Regards :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.