Skip to content

Commit

Permalink
Update Readme - small descr
Browse files Browse the repository at this point in the history
  • Loading branch information
thewulf7 committed Dec 9, 2015
1 parent e6fe82f commit 4944d47
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,33 @@ $ticketService = $travel->getTicketService();
//Get flights found by our users in the last 48 hours from LED to MOW. Return array consists of thewulf7\travelPayouts\Ticket objects.
$flights = $ticketService->getLatestPrices('LED', 'MOW', false, 'rub', 'year', 1, 10);
```

See [documentation](https://github.com/thewulf7/travel-payouts/wiki/TicketService)

###Flight service
```php
$flightService = $travel->getFlightService();
$flightService
->setIp('127.0.0.1')
->setHost('aviasales.ru')
->setMarker('123')
->addPassenger('adults', 2)
->addSegment('LED', 'MOW', '2016-02-01');
$searchData = $flightService->search('ru', 'Y');
$searchResults = $flightService->getSearchResults($searchData['search_id']);
```

###Partner service
```php
$partnerService = $travel->getPartnerService();
//get user balance and currency of the balance
list($balance, $currency) = $partnerService->getBalance();
```

###Data service
```php
$dataService = $travel->getDataService();
//get all airports in the system
$airports = $dataService->getAirports();
```

0 comments on commit 4944d47

Please sign in to comment.