19 lines
447 B
PHP
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"
|
|
}
|
|
}
|
|
]
|
|
}';
|
|
}
|
|
|
|
} |