hermannovich / marketcheck-api-sdk-php
v1.0
2018-07-18 07:56 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
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移动应用的底层。
一些有用的链接
- API和用例的快速查看 在这里
- 包含API各种用法的Postman集合在此共享 https://www.getpostman.com/collections/2752684ff636cdd7bac2
此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
模型文档
- 平均值
- BaseListing
- Build
- CRMResponse
- ComparisonPoint
- CompetitorsCarDetails
- CompetitorsPoint
- CompetitorsSameCars
- CompetitorsSimilarCars
- Dealer
- DealerLandingPage
- DealerRating
- DealerReview
- DealersResponse
- DepreciationPoint
- DepreciationStats
- Economy
- Error
- FacetItem
- FuelEfficiency
- HistoricalListing
- Listing
- ListingDebugAttributes
- ListingExtraAttributes
- ListingFinance
- ListingLease
- ListingMedia
- ListingNestExtraAttributes
- ListingNestMedia
- ListingVDP
- Location
- MakeModel
- Mds
- NestDealer
- PlotPoint
- PopularityItem
- RatingComponents
- ReviewComponents
- SafetyRating
- Sales
- SalesStats
- SearchResponse
- TrendPoint
- VinReport
授权文档
所有端点都不需要授权。