hermannovich/marketcheck-api-sdk-php

v1.0 2018-07-18 07:56 UTC

This package is auto-updated.

Last update: 2024-09-07 00:02:10 UTC


README

访问美国所有汽车经销商的新车、二手车和认证车库存。
数据来自美国44,000多家汽车经销商的在线列表。在任何时候,都有大约620万可搜索的二手车和认证车列表(约190万个独特的VIN),以及约660万(约390万个独特的VIN)的新车列表。我们使用这个API作为我们网站 www.marketcheck.com 和我们的Android和iOS移动应用的底层。

一些有用的链接

此PHP包由Swagger Codegen项目自动生成

  • API版本:1.0.3
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.5及以上

安装与使用

Composer

要通过Composer安装绑定,请将以下内容添加到composer.json

composer require hermannovich/marketcheck-api-sdk-php

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to/marketcheck-api-sdk/vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照安装程序进行操作,然后运行以下内容

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new marketcheck\api\sdk\Api\CRMApi(
    // 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()
);
$vin = "vin_example"; // string | vin for which CRM check needs to be done
$sale_date = "sale_date_example"; // string | sale date after which listing has appeared or not
$api_key = "api_key_example"; // string | The API Authentication Key. Mandatory with all API calls.

try {
    $result = $apiInstance->crmCheck($vin, $sale_date, $api_key);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CRMApi->crmCheck: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI相对于https://marketcheck-prod.apigee.net/v1

模型文档

授权文档

所有端点都不需要授权。

作者