PHP_SMART_HOME_V3/app/api/GoogleHomeApi.php

20 lines
450 B
PHP
Raw Normal View History

2020-04-29 17:28:33 +00:00
<?php
class GoogleHomeApi {
2020-04-29 14:10:33 +00:00
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"
}
}
]
}';
}
2020-04-29 17:28:33 +00:00
}