Interesting Stuff

This commit is contained in:
JonatanRek
2020-04-29 16:10:33 +02:00
parent c774ad90c2
commit a1cfb21a81
4 changed files with 31 additions and 7 deletions

19
app/models/GoogleHome.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
class GoogleHome {
function response()
{
header('Content-Type: application/json');
$update_response = file_get_contents("php://input");
$update = json_decode($update_response, true);
echo '"RichResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "test speech"
}
}
]
}';
}
}