ondrs / sauto
Sauto API PHP wrapper
Installs: 1 153
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: >= 5.6.0
- lstrojny/fxmlrpc: ~0.10.0
This package is not auto-updated.
Last update: 2021-08-21 02:44:13 UTC
README
Sauto API PHP wrapper
Instalation
composer.json
"ondrs/sauto": "0.2.1"
Usage
Create a new Sauto instance and pass your software key as a parametr
$sauto = new ondrs\Sauto\SautoApi('sauto.swKey')
Login
$sauto->login('login', 'password');
Use methods according to the API
$sauto->listOfCars(); // returns QuickCarData[]
Create/update vehicles
$car = new CarData([
'kind_id' => 1,
'manufacturer_id' => 100,
// etc ...
]);
$carId = $sauto->addEditCar($car); // returns int
// etc... :)
And logout after you are done
$sauto->logout();