Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 562 Bytes
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require 'vendor/autoload.php';
$app = new \Slim\App;
$app->get('/webhooks/answer', function (Request $request, Response $response) {
$ncco = [
[
'action' => 'talk',
'text' => 'Hi, welcome to this Nexmo conference call.'
],
[
'action' => 'conversation',
'name' => 'nexmo-conference-standard'
]
];
return $response->withJson($ncco);
});
$app->run();
You can’t perform that action at this time.