Skip to content

Autotrader.co.za PHP Client Library (Test Version) - DELETE ME

Notifications You must be signed in to change notification settings

autoxloo/autotrader-php-client-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerClient-php

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

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

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;
}

?>

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

basic

  • Type: HTTP basic authentication

Author

About

Autotrader.co.za PHP Client Library (Test Version) - DELETE ME

Resources

Stars

Watchers

Forks

Packages

No packages published