PHP code example of thewulf7 / tripadvisor
1. Go to this page and download the library: Download thewulf7/tripadvisor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thewulf7 / tripadvisor example snippets
'components' => [
...
'tripadvisor' => [
'class' => 'thewulf7\tripadvisor\Connection'
]
...
]
$trip = \Yii::$app->get('tripadvisor');
return $trip->createCommand()->search('Moscow');
$query = new \thewulf7\tripadvisor\Query();
$query
->setAction()
->addType('geo')
->setQuery('Moscow')
->setDetails(false);
return $query
->createCommand()
->search();