HI i am using an example, i wan to extract the fulfilment and speech for output, i have tried var_dump which is showing object is private and i am unable to access any of property
i.e $response->result->fulfilment;
use DialogFlow\Client;
use DialogFlow\Model\Query;
use DialogFlow\Method\QueryApi;
try {
$client = new Client('access_token');
$queryApi = new QueryApi($client);
$meaning = $queryApi->extractMeaning('Hello', [
'sessionId' => '1234567890',
'lang' => 'en',
]);
$response = new Query($meaning);
} catch (\Exception $error) {
echo $error->getMessage();
}
HI i am using an example, i wan to extract the fulfilment and speech for output, i have tried var_dump which is showing object is private and i am unable to access any of property
i.e $response->result->fulfilment;