PHP_SMART_HOME_V3/app/api/GoogleHomeApi.php
2020-04-29 19:28:33 +02:00

20 lines
450 B
PHP

<?php
class GoogleHomeApi {
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"
}
}
]
}';
}
}