PHP_SMART_HOME_V3/app/models/GoogleHome.php

19 lines
447 B
PHP
Raw Normal View History

2020-04-29 14:10:33 +00:00
<?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"
}
}
]
}';
}
}