Skip to content

Commit

Permalink
Add dialogDelegate method
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Sep 25, 2018
1 parent d42673d commit 9c1fdbc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/AmazonAlexaDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,27 @@ public function sendRequest($endpoint, array $parameters, IncomingMessage $match
{
//
}



public function dialogDelegate()
{
$response = [
'version' => '1.0',
'sessionAttributes' => [],
'response' => [
'outputSpeech' => null,
'card' => null,
'directives' => [
[
'type' => 'Dialog.Delegate'
]
],
'reprompt' => null,
'shouldEndSession' => false,
]
];

return Response::create(json_encode($response))->send();
}
}

0 comments on commit 9c1fdbc

Please sign in to comment.