PHP_SMART_HOME_V3/app/models/GoogleHome.php
2020-04-29 16:10:33 +02:00

19 lines
447 B
PHP

<?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"
}
}
]
}';
}
}