I'm Max Beckers, Solution Architect at PAYONE a Worldline company.
- php / symfony (Certified Developer)
- java / spring boot
- kubernetes & helm
- software architecture
Symfony Bundle for amazon alexa skills.
License: MIT License
Symfony no longer supports getting a service with ->get(). Instead, it requires injecting the service in the constructor.
Also, a demo repo for this bundle would be great, especially if it included the documentation for how to do the setup on the Amazon side.
Thanks!
Hi
sorry if the question is stupid, but is it work with laravel ?
Hi. Thanks for your work.
I have problems with my endpoints. I've installed the bundle and trying to configure handlers:
/app/config/routes/maxbeckers_amazon_alexa.yaml
maxbeckers_amazon_alexa:
path: /alexa/
defaults: { _controller: MaxBeckersAmazonAlexaBundle:AmazonAlexa:amazonRequest }
Here is my app/config/services.yaml
file:
...
alexa.launch_request.handler:
class: App\Intents\LaunchRequest\LaunchRequestHandler
arguments:
- '@maxbeckers_amazon_alexa.response_helper' # ResponseHelper
tags:
- 'maxbeckers_amazon_alexa.request_handler'
And my request handler:
<?php
declare(strict_types=1);
namespace App\Intents\LaunchRequest;
use MaxBeckers\AmazonAlexa\Helper\ResponseHelper;
use MaxBeckers\AmazonAlexa\Request\Request;
use MaxBeckers\AmazonAlexa\RequestHandler\AbstractRequestHandler;
use MaxBeckers\AmazonAlexa\Response\Response;
class LaunchRequestHandler extends AbstractRequestHandler
{
/**
* @var ResponseHelper
*/
private ResponseHelper $responseHelper;
/**
* @param ResponseHelper $responseHelper
*/
public function __construct(ResponseHelper $responseHelper)
{
$this->responseHelper = $responseHelper;
$this->supportedApplicationIds = ['my-id'];
}
/**
* @param Request $request
* @return bool
*/
public function supportsRequest(Request $request): bool
{
return $request->request instanceof Request\Standard\LaunchRequest;
}
/**
* @param Request $request
* @return Response|null
*/
public function handleRequest(Request $request): ?Response
{
return $this->responseHelper->respond('Success :)');
}
}
I'm testing the app with amazon developer console, and get an error:
SKILL_ENDPOINT_ERROR: Skill returned with a non-ok status [500, Internal Server Error]
and another ones like this..
What am I doing wrong?
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.