2017 © Pedro Peláez
 

library autoscout24

AutoScout24 PHP API.

image

indielab/autoscout24

AutoScout24 PHP API.

  • Wednesday, August 9, 2017
  • by nadar
  • Repository
  • 2 Watchers
  • 1 Stars
  • 117 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

DANGER: The AutoScout24 Endpoint is only available if they whiteliste your provided IP Address, this makes it very hard to develop local - as you can imagine. An incredible bad solution for such a big company, just saying. Maybe try to use another car sharing platform which provides a more modern technology approach!, (*1)

AutoScout24 PHP REST API CLIENT

Latest Stable Version Total Downloads License, (*2)

A very easy to use library to work with the AutoScout24 REST Api., (*3)

Examples

Before using the library you have to obtain your cuid and memberid from the AutoScout24 Support., (*4)

Getting Data

// setup client object
$client = new Client($cuid, $memberId);

// generate query object
$query = new VehicleQuery();
$query->setClient($client);
foreach ($cars->find() as $car) {
    $car->getTypeNameFull();
}

The above code is equal with the following short notation:, (*5)

$client = new Client($cuid, $memberId);
$cars = (new VehicleQuery())->setClient($client)->find();
foreach ($cars as $car) {
    $car->getId();
}

In order to generate a response without pagination use:, (*6)

$client = new Client($cuid, $memberId);
$cars = (new VehicleQuery())->setClient($client)->findAll();

Find a car by its id:, (*7)

$client = new Client($cuid, $memberId);
$car = (new VehicleQuery())->setClient($client)->findOne($carId);

Filter and Sorting:, (*8)

$client = new Client($cuid, $memberId);
$cars = (new VehicleQuery())->setClient($client)->setVehicleSorting('price_desc')->find();

See the VehiceQuery class for all filter and sorting methods like:, (*9)

  • setVehicleSorting()
  • setVehicleTypeId()
  • setYearTo()
  • setEquipment()
  • setPage()
  • setItemsPerPage()
  • setMake()
  • setModel()

Meta Data

$client = new Clien($cuid, $memberId);
$data = (new MetaQuery())->setClient($client)->findPkw();

foreach ($data as $meta) {
    var_dump($meta->getParameterName(), $meta->getDescription());
}

filter by a type, (*10)

$meta = (new MetaQuery())->setClient($this->client)->findPkw()->filter('sort');

The Versions

09/08 2017

dev-master

9999999-dev https://github.com/indielab/autoscout24

AutoScout24 PHP API.

  Sources   Download

The Requires

 

The Development Requires

api php autoscout24

12/04 2017

1.0.0

1.0.0.0 https://github.com/indielab/autoscout24

AutoScout24 PHP API.

  Sources   Download

The Requires

 

The Development Requires

api php autoscout24