AutoTrader REST service
This PHP package is automatically generated by the Swagger Codegen project:
- API version: v2-listings
- Build package: io.swagger.codegen.languages.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = AutoTrader\Client\Test\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new AutoTrader\Client\Test\Api\DealerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$dealer_id = 56; // int |
try {
$result = $apiInstance->dealerFetch($dealer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DealerApi->dealerFetch: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://services.exdev.autotrader.co.za
Class | Method | HTTP request | Description |
---|---|---|---|
DealerApi | dealerFetch | GET /api/listings/v2.0/dealers/{dealerId} | |
DealerApi | dealerSearch | POST /api/listings/v2.0/dealers/search | |
LeadApi | leadSearch | GET /api/listings/v2.0/leads/search | |
ListingApi | listingActivate | POST /api/listings/v2.0/listings/{listingId}/activate | |
ListingApi | listingCreate | POST /api/listings/v2.0/listings | |
ListingApi | listingFetch | GET /api/listings/v2.0/listings/{listingId} | |
ListingApi | listingSearch | POST /api/listings/v2.0/listings/search | |
ListingApi | listingSell | POST /api/listings/v2.0/listings/{listingId}/sell | |
ListingApi | listingUpdate | PUT /api/listings/v2.0/listings/{listingId} | |
ListingApi | listingWithdraw | POST /api/listings/v2.0/listings/{listingId}/withdraw | |
SpecificationApi | specificationFetchBySpecificationId | GET /api/listings/v2.0/specifications/{specificationId} | |
SpecificationApi | specificationSearch | POST /api/listings/v2.0/specifications/search | |
SpecificationApi | specificationSearchByTummCodeOrDuoportaId | GET /api/listings/v2.0/specifications/search | |
SpecificationApi | specificationSearchMakes | GET /api/listings/v2.0/specifications/makes/search | |
SpecificationApi | specificationSearchModels | GET /api/listings/v2.0/specifications/models/search | |
SpecificationApi | specificationSubmitForClarification | POST /api/listings/v2.0/specifications |
- DealerSearchCriteria
- DealerSearchResponse
- DealerSummary
- LeadResponse
- ListingActivateResponse
- ListingCreateResponse
- ListingModel
- ListingModelReadOnly
- ListingSearchCriteria
- ListingSearchResponse
- ListingSellResponse
- ListingSummary
- ListingWithdrawResponse
- MakeModelRequest
- NullableVolume
- SendContactMessageLeadResponse
- Specification
- SpecificationResponse
- SubmitRequestModel
- Type: HTTP basic authentication