Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aeyoll/april-international-ws
PHP wrapper around the AprilInternational insurance API
https://github.com/aeyoll/april-international-ws
Last synced: 3 days ago
JSON representation
PHP wrapper around the AprilInternational insurance API
- Host: GitHub
- URL: https://github.com/aeyoll/april-international-ws
- Owner: aeyoll
- License: mit
- Created: 2015-07-02T08:48:57.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2015-07-03T08:49:05.000Z (over 9 years ago)
- Last Synced: 2024-11-01T23:25:07.412Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# april-international-ws
PHP wrapper around the AprilInternational insurance API
## Basic Usage
```
$ws = new AprilInternationalWS(array(
'login' => 'LOGIN',
'password' => 'PASSWD'
));$assurances = $ws->getAssurances();
foreach ($assurances as $assurance) {
$formules = $ws->getFormules($assurance->id);foreach ($formules as $formule) {
$devis = $ws
->addDepartureDate(new \Datetime('1 week'))
->addArrivalDate(new \Datetime('2 weeks'))
->addTraveler(true, 'lastname', 'firstname', 450, true)
->addTraveler(true, 'lastname', 'firstname', 450, false)
->getDevis($assurance->id, $formule->id, 450);$idContract = $ws->validateDevis($devis->id);
$ws->getVoucherPdf($devis->id);
die();
}
}
```