Autoscout24 API Demo
Please login to use the Autoscout24 Demo
More Information
Integration of the AutoScout24 search into your desktop, web or mobile apps free of charge.
How it works
try{ $vehicle_search_parameters->setAddress(new VehicleSearchParametersAddress( new VehicleSearchParametersAddressCountries($country_array), null, null, null)); $vehicle_search_parameters->setBrands(new VehicleSearchParametersBrands ($brand_arry); $vehicle_search_parameters->setModels(new VehicleSearchParametersModels ($model_array); //keep going on like this------ $searchParams = new SearchParameters($culture_key, $vehicle_search_parameters); $find_articles_response = $client->findArticles($searchParams); if(!($find_articles_response->getStatus()->getStatusConstant() == AutoScout24StatusConstants::SUCCESS)) { $errorMessage = "The invocation of getLookUpData() was not successful.\n"; $errorMessage .= "The error code is: ".$find_articles_response->getStatus()->getStatusCode()."\n"; $errorMessage .= "The error message is: ".$find_articles_response->getStatus()->getStatusMessage()."\n"; $errorMessage .= "The error description is: ".$find_articles_response->getStatus()->getStatusDescriptionGerman(); throw new Exception ($errorMessage); } $myVehicles = $findArticlesResponse->getVehicles()->getVehicle(); foreach($myVehicles as $vehicle){ //get Id's of values to get the full Text $carBrandId = $car->getBrandId(); . . . print $carBrand; } }catch(Exception $e){ $this->exceptionText = $e->getMessage(); }