marketcheck_ruby_client 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +133 -0
- data/docs/Averages.md +13 -0
- data/docs/BaseListing.md +27 -0
- data/docs/Build.md +19 -0
- data/docs/Dealer.md +23 -0
- data/docs/DealerApi.md +230 -0
- data/docs/Error.md +9 -0
- data/docs/FacetItem.md +9 -0
- data/docs/FacetsApi.md +71 -0
- data/docs/GraphsApi.md +73 -0
- data/docs/HistoricalListing.md +19 -0
- data/docs/HistoryApi.md +65 -0
- data/docs/InventoryApi.md +113 -0
- data/docs/Listing.md +23 -0
- data/docs/ListingDebugAttributes.md +13 -0
- data/docs/ListingExtraAttributes.md +10 -0
- data/docs/ListingMedia.md +9 -0
- data/docs/ListingVDP.md +10 -0
- data/docs/ListingsApi.md +324 -0
- data/docs/Location.md +12 -0
- data/docs/MakeModel.md +9 -0
- data/docs/MarketAveragesApi.md +70 -0
- data/docs/MarketTrendsApi.md +72 -0
- data/docs/PlotPoint.md +14 -0
- data/docs/SearchResponse.md +9 -0
- data/docs/TrendPoint.md +12 -0
- data/docs/VINDecoderApi.md +59 -0
- data/git_push.sh +52 -0
- data/lib/marketcheck_ruby_client.rb +65 -0
- data/lib/swagger_client/api/dealer_api.rb +312 -0
- data/lib/swagger_client/api/facets_api.rb +105 -0
- data/lib/swagger_client/api/graphs_api.rb +108 -0
- data/lib/swagger_client/api/history_api.rb +95 -0
- data/lib/swagger_client/api/inventory_api.rb +155 -0
- data/lib/swagger_client/api/listings_api.rb +474 -0
- data/lib/swagger_client/api/market_averages_api.rb +102 -0
- data/lib/swagger_client/api/market_trends_api.rb +108 -0
- data/lib/swagger_client/api/vin_decoder_api.rb +89 -0
- data/lib/swagger_client/api_client.rb +332 -0
- data/lib/swagger_client/api_error.rb +36 -0
- data/lib/swagger_client/configuration.rb +163 -0
- data/lib/swagger_client/models/averages.rb +217 -0
- data/lib/swagger_client/models/base_listing.rb +370 -0
- data/lib/swagger_client/models/build.rb +284 -0
- data/lib/swagger_client/models/dealer.rb +329 -0
- data/lib/swagger_client/models/error.rb +173 -0
- data/lib/swagger_client/models/facet_item.rb +173 -0
- data/lib/swagger_client/models/historical_listing.rb +284 -0
- data/lib/swagger_client/models/listing.rb +327 -0
- data/lib/swagger_client/models/listing_debug_attributes.rb +217 -0
- data/lib/swagger_client/models/listing_extra_attributes.rb +188 -0
- data/lib/swagger_client/models/listing_media.rb +175 -0
- data/lib/swagger_client/models/listing_vdp.rb +185 -0
- data/lib/swagger_client/models/location.rb +207 -0
- data/lib/swagger_client/models/make_model.rb +171 -0
- data/lib/swagger_client/models/plot_point.rb +228 -0
- data/lib/swagger_client/models/search_response.rb +175 -0
- data/lib/swagger_client/models/trend_point.rb +206 -0
- data/lib/swagger_client/version.rb +15 -0
- data/marketcheck_ruby_client-1.0.6.gem +0 -0
- data/marketcheck_ruby_client.gemspec +32 -0
- data/spec/api/dealer_api_spec.rb +109 -0
- data/spec/api/facets_api_spec.rb +57 -0
- data/spec/api/graphs_api_spec.rb +58 -0
- data/spec/api/history_api_spec.rb +54 -0
- data/spec/api/inventory_api_spec.rb +70 -0
- data/spec/api/listings_api_spec.rb +148 -0
- data/spec/api/market_averages_api_spec.rb +57 -0
- data/spec/api/market_trends_api_spec.rb +57 -0
- data/spec/api/vin_decoder_api_spec.rb +52 -0
- data/spec/models/averages_spec.rb +96 -0
- data/spec/models/base_listing_spec.rb +236 -0
- data/spec/models/build_spec.rb +156 -0
- data/spec/models/dealer_spec.rb +196 -0
- data/spec/models/error_spec.rb +56 -0
- data/spec/models/facet_item_spec.rb +56 -0
- data/spec/models/historical_listing_spec.rb +156 -0
- data/spec/models/listing_debug_attributes_spec.rb +96 -0
- data/spec/models/listing_extra_attributes_spec.rb +66 -0
- data/spec/models/listing_media_spec.rb +56 -0
- data/spec/models/listing_spec.rb +196 -0
- data/spec/models/listing_vdp_spec.rb +66 -0
- data/spec/models/location_spec.rb +86 -0
- data/spec/models/make_model_spec.rb +56 -0
- data/spec/models/plot_point_spec.rb +106 -0
- data/spec/models/search_response_spec.rb +56 -0
- data/spec/models/trend_point_spec.rb +86 -0
- metadata +337 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f8433069eb2414a0a98142c5c1326bfe3ab6af35
|
4
|
+
data.tar.gz: 110f95fc8ffdf0315bbf44bb46fc6873b4cb3cc5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: eca352d1eadde5f605514a291f9ba09e1cba0654ffbb4d6e7dfba36d035d58e4e02df1e19aa8c2476b0deb97271eec40244d4e511b730329bd79cafaeddd6289
|
7
|
+
data.tar.gz: 7fcf6b3f59633101922e17cf6b371564f1744e8e260b2e0579a4abf3365bbe875d985c865a67864608dd10611bb198aacaa7c5aada6574de75a55d1fa6a8505e
|
data/README.md
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
# marketcheck_ruby_client
|
2
|
+
|
3
|
+
The Ruby gem for the Marketcheck Cars API
|
4
|
+
|
5
|
+
<b>Access New, Used and Certified cars inventories for all Car Dealers in US.</b> <br/>The data is sourced from online listings by over 40,000 Car dealers in US. At any time, there are about 5.2M searchable listings (about 1.8M unique VINs) for Used & Certified cars and about 5M (about 2.3M unique VINs) New Car listings from all over US. We use this API at the back for our website <a href='http://www.marketcheck.com' target='_blank'>www.marketcheck.com</a> and our Android and iOS mobile apps too.<br/><h5> Few useful links : </h5><ul><li>A quick view of the API and the use cases is depicated <a href='https://portals.marketcheck.com/mcapi/' target='_blank'>here</a></li><li>The Postman collection with various usages of the API is shared here https://www.getpostman.com/collections/2752684ff636cdd7bac2</li><li> [Coming soon] API Key : Request your API Key <a href='https://portals.marketcheck.com/api' target='_blank'> here </a> </li><li> [Coming soon] Benchmarks : See the API benchmarks <a href='https://portals.marketcheck.com/mcapi/benchmarks'>here</a></li></ul>
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API verion: 1.0.4
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build date: 2016-03-22T18:25:59.270Z
|
12
|
+
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
### Build a gem
|
17
|
+
|
18
|
+
To build the Ruby code into a gem:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
gem build marketcheck_ruby_client.gemspec
|
22
|
+
```
|
23
|
+
|
24
|
+
Then either install the gem locally:
|
25
|
+
|
26
|
+
```shell
|
27
|
+
gem install ./marketcheck_ruby_client-1.0.4.gem
|
28
|
+
```
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'marketcheck_ruby_client', '~> 1.0.4'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:
|
39
|
+
|
40
|
+
gem 'marketcheck_ruby_client', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'marketcheck_ruby_client'
|
56
|
+
|
57
|
+
api_instance = SwaggerClient::DealerApi.new
|
58
|
+
|
59
|
+
api_key = "api_key_example" # String | The API Authentication Key. Mandatory with all API calls.
|
60
|
+
|
61
|
+
latitude = 1.2 # Float | Latitude component of location
|
62
|
+
|
63
|
+
longitude = 1.2 # Float | Longitude component of location
|
64
|
+
|
65
|
+
radius = 56 # Integer | Radius around the search location
|
66
|
+
|
67
|
+
type = "type_example" # String | Dealer inventory type. Allowed values are - new / used / certified
|
68
|
+
|
69
|
+
opts = {
|
70
|
+
rows: 3.4, # Float | Number of results to return. Default is 10. Max is 50
|
71
|
+
start: 3.4 # Float | Offset for the search results. Default is 1.
|
72
|
+
}
|
73
|
+
|
74
|
+
begin
|
75
|
+
#Find car dealers around
|
76
|
+
result = api_instance.dealer_search(api_key, latitude, longitude, radius, type, opts)
|
77
|
+
p result
|
78
|
+
rescue SwaggerClient::ApiError => e
|
79
|
+
puts "Exception when calling DealerApi->dealer_search: #{e}"
|
80
|
+
end
|
81
|
+
|
82
|
+
```
|
83
|
+
|
84
|
+
## Documentation for API Endpoints
|
85
|
+
|
86
|
+
All URIs are relative to *http://api.marketcheck.com/v1*
|
87
|
+
|
88
|
+
Class | Method | HTTP request | Description
|
89
|
+
------------ | ------------- | ------------- | -------------
|
90
|
+
*SwaggerClient::DealerApi* | [**dealer_search**](../../blob/master/marketcheck_ruby_client/docs/DealerApi.md#dealer_search) | **GET** /dealers | Find car dealers around
|
91
|
+
*SwaggerClient::DealerApi* | [**get_dealer**](../../blob/master/marketcheck_ruby_client/docs/DealerApi.md#get_dealer) | **GET** /dealer/{id} | Dealer by id
|
92
|
+
*SwaggerClient::DealerApi* | [**get_dealer_active_inventory**](../../blob/master/marketcheck_ruby_client/docs/DealerApi.md#get_dealer_active_inventory) | **GET** /dealer/{dealer_id}/active/inventory | Dealer inventory
|
93
|
+
*SwaggerClient::DealerApi* | [**get_dealer_historical_inventory**](../../blob/master/marketcheck_ruby_client/docs/DealerApi.md#get_dealer_historical_inventory) | **GET** /dealer/{dealer_id}/historical/inventory | Dealer's historical inventory
|
94
|
+
*SwaggerClient::FacetsApi* | [**get_facets**](../../blob/master/marketcheck_ruby_client/docs/FacetsApi.md#get_facets) | **GET** /facets | Facets
|
95
|
+
*SwaggerClient::GraphsApi* | [**get_price_miles_plot_data**](../../blob/master/marketcheck_ruby_client/docs/GraphsApi.md#get_price_miles_plot_data) | **GET** /plots | Price, Miles plots data for given criteria
|
96
|
+
*SwaggerClient::HistoryApi* | [**history**](../../blob/master/marketcheck_ruby_client/docs/HistoryApi.md#history) | **GET** /history/{vin} | Get a cars online listing history
|
97
|
+
*SwaggerClient::InventoryApi* | [**get_dealer_active_inventory**](../../blob/master/marketcheck_ruby_client/docs/InventoryApi.md#get_dealer_active_inventory) | **GET** /dealer/{dealer_id}/active/inventory | Dealer inventory
|
98
|
+
*SwaggerClient::InventoryApi* | [**get_dealer_historical_inventory**](../../blob/master/marketcheck_ruby_client/docs/InventoryApi.md#get_dealer_historical_inventory) | **GET** /dealer/{dealer_id}/historical/inventory | Dealer's historical inventory
|
99
|
+
*SwaggerClient::ListingsApi* | [**get_listing**](../../blob/master/marketcheck_ruby_client/docs/ListingsApi.md#get_listing) | **GET** /listing/{id} | Listing by id
|
100
|
+
*SwaggerClient::ListingsApi* | [**get_listing_extra**](../../blob/master/marketcheck_ruby_client/docs/ListingsApi.md#get_listing_extra) | **GET** /listing/{id}/extra | Long text Listings attributes for Listing with the given id
|
101
|
+
*SwaggerClient::ListingsApi* | [**get_listing_media**](../../blob/master/marketcheck_ruby_client/docs/ListingsApi.md#get_listing_media) | **GET** /listing/{id}/media | Listing media by id
|
102
|
+
*SwaggerClient::ListingsApi* | [**get_listing_vdp**](../../blob/master/marketcheck_ruby_client/docs/ListingsApi.md#get_listing_vdp) | **GET** /listing/{id}/vdp | Get listing HTML
|
103
|
+
*SwaggerClient::ListingsApi* | [**search**](../../blob/master/marketcheck_ruby_client/docs/ListingsApi.md#search) | **GET** /search | Gets active car listings for the given search criteria
|
104
|
+
*SwaggerClient::MarketAveragesApi* | [**get_averages**](../../blob/master/marketcheck_ruby_client/docs/MarketAveragesApi.md#get_averages) | **GET** /averages | Get Averages for YMM
|
105
|
+
*SwaggerClient::MarketTrendsApi* | [**get_trends**](../../blob/master/marketcheck_ruby_client/docs/MarketTrendsApi.md#get_trends) | **GET** /trends | Get Trends for criteria
|
106
|
+
*SwaggerClient::VINDecoderApi* | [**decode**](../../blob/master/marketcheck_ruby_client/docs/VINDecoderApi.md#decode) | **GET** /vin/{vin}/specs | VIN Decoder
|
107
|
+
|
108
|
+
|
109
|
+
## Documentation for Models
|
110
|
+
|
111
|
+
- [SwaggerClient::Averages](docs/Averages.md)
|
112
|
+
- [SwaggerClient::BaseListing](docs/BaseListing.md)
|
113
|
+
- [SwaggerClient::Build](docs/Build.md)
|
114
|
+
- [SwaggerClient::Dealer](docs/Dealer.md)
|
115
|
+
- [SwaggerClient::Error](docs/Error.md)
|
116
|
+
- [SwaggerClient::FacetItem](docs/FacetItem.md)
|
117
|
+
- [SwaggerClient::HistoricalListing](docs/HistoricalListing.md)
|
118
|
+
- [SwaggerClient::Listing](docs/Listing.md)
|
119
|
+
- [SwaggerClient::ListingDebugAttributes](docs/ListingDebugAttributes.md)
|
120
|
+
- [SwaggerClient::ListingExtraAttributes](docs/ListingExtraAttributes.md)
|
121
|
+
- [SwaggerClient::ListingMedia](docs/ListingMedia.md)
|
122
|
+
- [SwaggerClient::ListingVDP](docs/ListingVDP.md)
|
123
|
+
- [SwaggerClient::Location](docs/Location.md)
|
124
|
+
- [SwaggerClient::MakeModel](docs/MakeModel.md)
|
125
|
+
- [SwaggerClient::PlotPoint](docs/PlotPoint.md)
|
126
|
+
- [SwaggerClient::SearchResponse](docs/SearchResponse.md)
|
127
|
+
- [SwaggerClient::TrendPoint](docs/TrendPoint.md)
|
128
|
+
|
129
|
+
|
130
|
+
## Documentation for Authorization
|
131
|
+
|
132
|
+
All endpoints do not require authorization.
|
133
|
+
|
data/docs/Averages.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# SwaggerClient::Averages
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**price** | **Float** | Mean price value for the car | [optional]
|
7
|
+
**msrp** | **Float** | Mean msrp value for the car | [optional]
|
8
|
+
**miles** | **Float** | Mean miles value for the car | [optional]
|
9
|
+
**dom** | **Float** | Average Days on Market value for the car based on all listings found in the Marketcheck database for this car | [optional]
|
10
|
+
**age** | **Float** | Average age of the car | [optional]
|
11
|
+
**units** | **Float** | No of units for this car on the market | [optional]
|
12
|
+
|
13
|
+
|
data/docs/BaseListing.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# SwaggerClient::BaseListing
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Unique identifier representing a specific listing from the Marketcheck database | [optional]
|
7
|
+
**heading** | **String** | Listing title as displayed on the source website | [optional]
|
8
|
+
**vin** | **String** | VIN for the car | [optional]
|
9
|
+
**price** | **String** | Asking price for the car | [optional]
|
10
|
+
**miles** | **String** | Odometer reading / reported miles usage for the car | [optional]
|
11
|
+
**last_seen_at** | **Float** | Listing last seen at (most recent) timestamp | [optional]
|
12
|
+
**ref_price** | **String** | Last reported price for the car. If the asking price value is not or is available then the last_price could perhaps be used. last_price is the price for the car listed on the source website as of last_price_dt date | [optional]
|
13
|
+
**ref_miles** | **String** | Last Odometer reading / reported miles usage for the car. If the asking miles value is not or is available then the last_miles could perhaps be used. last_miles is the miles for the car listed on the source website as of last_miles_dt date | [optional]
|
14
|
+
**ref_price_dt** | **Integer** | The date at which the last price was reported online. This is earlier to last_seen_date | [optional]
|
15
|
+
**ref_miles_dt** | **Integer** | The date at which the last miles was reported online. This is earlier to last_seen_date | [optional]
|
16
|
+
**dom** | **Float** | Days on Market value for the car based on current and historical listings found in the Marketcheck database for this car | [optional]
|
17
|
+
**exterior_color** | **String** | Exterior color of the car | [optional]
|
18
|
+
**interior_color** | **String** | Interior color of the car | [optional]
|
19
|
+
**vdp_url** | **String** | Vehicle Details Page url of the specific car | [optional]
|
20
|
+
**source** | **String** | Source domain of the listing | [optional]
|
21
|
+
**media** | [**ListingMedia**](ListingMedia.md) | Car Media Attributes - main photo link/url and photo links | [optional]
|
22
|
+
**build** | [**Build**](Build.md) | | [optional]
|
23
|
+
**dealer** | [**Dealer**](Dealer.md) | | [optional]
|
24
|
+
**is_certified** | **Integer** | Certified car | [optional]
|
25
|
+
**distance** | **Float** | Distance of the car's location from the specified user lcoation | [optional]
|
26
|
+
|
27
|
+
|
data/docs/Build.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# SwaggerClient::Build
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**year** | **Float** | Year of the Car | [optional]
|
7
|
+
**make** | **String** | Car Make | [optional]
|
8
|
+
**model** | **String** | Car model | [optional]
|
9
|
+
**trim** | **String** | Trim of the car | [optional]
|
10
|
+
**engine** | **String** | Engine of the car | [optional]
|
11
|
+
**engine_block** | **String** | Engine block of the car | [optional]
|
12
|
+
**engine_size** | **String** | Engine size of the car | [optional]
|
13
|
+
**engine_measure** | **String** | Engine block of the car | [optional]
|
14
|
+
**engine_aspiration** | **String** | Engine aspiration of the car | [optional]
|
15
|
+
**transmission** | **String** | Transmission of the car | [optional]
|
16
|
+
**doors** | **Float** | No of doors of the car | [optional]
|
17
|
+
**cylinders** | **Float** | No of cylinders of the car | [optional]
|
18
|
+
|
19
|
+
|
data/docs/Dealer.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# SwaggerClient::Dealer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The unique id associated with the dealer in the Marketcheck database | [optional]
|
7
|
+
**franchise_id** | **String** | Dealer franchise id | [optional]
|
8
|
+
**name** | **String** | Name of the dealer | [optional]
|
9
|
+
**street** | **String** | Street of the dealer | [optional]
|
10
|
+
**city** | **String** | City of the dealer | [optional]
|
11
|
+
**state** | **String** | State of the dealer | [optional]
|
12
|
+
**zip** | **String** | Zip of the dealer | [optional]
|
13
|
+
**latitude** | **String** | Latutide for the dealer location | [optional]
|
14
|
+
**longitude** | **String** | Longitude for the dealer location | [optional]
|
15
|
+
**phone** | **String** | Contact no of the dealer | [optional]
|
16
|
+
**car_type** | **String** | Car type new|used|certified | [optional]
|
17
|
+
**target_url_new** | **String** | Target url for the new cars listing | [optional]
|
18
|
+
**target_url_used** | **String** | Target url for the used cars listing | [optional]
|
19
|
+
**target_url_certified** | **String** | Target url for the certified cars listing | [optional]
|
20
|
+
**dealer_type** | **String** | Dealer type - independent, franchise, multi-brand, authorized | [optional] [default to "independent"]
|
21
|
+
**rating** | **Float** | Overall rating of the dealership on scale 1-5 | [optional]
|
22
|
+
|
23
|
+
|
data/docs/DealerApi.md
ADDED
@@ -0,0 +1,230 @@
|
|
1
|
+
# SwaggerClient::DealerApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://api.marketcheck.com/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**dealer_search**](DealerApi.md#dealer_search) | **GET** /dealers | Find car dealers around
|
8
|
+
[**get_dealer**](DealerApi.md#get_dealer) | **GET** /dealer/{id} | Dealer by id
|
9
|
+
[**get_dealer_active_inventory**](DealerApi.md#get_dealer_active_inventory) | **GET** /dealer/{dealer_id}/active/inventory | Dealer inventory
|
10
|
+
[**get_dealer_historical_inventory**](DealerApi.md#get_dealer_historical_inventory) | **GET** /dealer/{dealer_id}/historical/inventory | Dealer's historical inventory
|
11
|
+
|
12
|
+
|
13
|
+
# **dealer_search**
|
14
|
+
> Array<Dealer> dealer_search(api_key, latitude, longitude, radius, type, opts)
|
15
|
+
|
16
|
+
Find car dealers around
|
17
|
+
|
18
|
+
The dealers API returns a list of dealers around a given point and radius. Max radius of only 50 miles is supported.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'marketcheck_ruby_client'
|
24
|
+
|
25
|
+
api_instance = SwaggerClient::DealerApi.new
|
26
|
+
|
27
|
+
api_key = "api_key_example" # String | The API Authentication Key. Mandatory with all API calls.
|
28
|
+
|
29
|
+
latitude = 1.2 # Float | Latitude component of location
|
30
|
+
|
31
|
+
longitude = 1.2 # Float | Longitude component of location
|
32
|
+
|
33
|
+
radius = 56 # Integer | Radius around the search location
|
34
|
+
|
35
|
+
type = "type_example" # String | Dealer inventory type. Allowed values are - new / used / certified
|
36
|
+
|
37
|
+
opts = {
|
38
|
+
rows: 3.4, # Float | Number of results to return. Default is 10. Max is 50
|
39
|
+
start: 3.4 # Float | Offset for the search results. Default is 1.
|
40
|
+
}
|
41
|
+
|
42
|
+
begin
|
43
|
+
#Find car dealers around
|
44
|
+
result = api_instance.dealer_search(api_key, latitude, longitude, radius, type, opts)
|
45
|
+
p result
|
46
|
+
rescue SwaggerClient::ApiError => e
|
47
|
+
puts "Exception when calling DealerApi->dealer_search: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**api_key** | **String**| The API Authentication Key. Mandatory with all API calls. |
|
56
|
+
**latitude** | **Float**| Latitude component of location |
|
57
|
+
**longitude** | **Float**| Longitude component of location |
|
58
|
+
**radius** | [**Integer**](.md)| Radius around the search location |
|
59
|
+
**type** | **String**| Dealer inventory type. Allowed values are - new / used / certified |
|
60
|
+
**rows** | [**Float**](.md)| Number of results to return. Default is 10. Max is 50 | [optional]
|
61
|
+
**start** | [**Float**](.md)| Offset for the search results. Default is 1. | [optional]
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**Array<Dealer>**](Dealer.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
No authorization required
|
70
|
+
|
71
|
+
### HTTP reuqest headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
# **get_dealer**
|
79
|
+
> Dealer get_dealer(api_key, id)
|
80
|
+
|
81
|
+
Dealer by id
|
82
|
+
|
83
|
+
Get a particular dealer's information by its id
|
84
|
+
|
85
|
+
### Example
|
86
|
+
```ruby
|
87
|
+
# load the gem
|
88
|
+
require 'marketcheck_ruby_client'
|
89
|
+
|
90
|
+
api_instance = SwaggerClient::DealerApi.new
|
91
|
+
|
92
|
+
api_key = "api_key_example" # String | The API Authentication Key. Mandatory with all API calls.
|
93
|
+
|
94
|
+
id = "id_example" # String | Dealer id to get all the dealer info attributes
|
95
|
+
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Dealer by id
|
99
|
+
result = api_instance.get_dealer(api_key, id)
|
100
|
+
p result
|
101
|
+
rescue SwaggerClient::ApiError => e
|
102
|
+
puts "Exception when calling DealerApi->get_dealer: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
### Parameters
|
107
|
+
|
108
|
+
Name | Type | Description | Notes
|
109
|
+
------------- | ------------- | ------------- | -------------
|
110
|
+
**api_key** | **String**| The API Authentication Key. Mandatory with all API calls. |
|
111
|
+
**id** | **String**| Dealer id to get all the dealer info attributes |
|
112
|
+
|
113
|
+
### Return type
|
114
|
+
|
115
|
+
[**Dealer**](Dealer.md)
|
116
|
+
|
117
|
+
### Authorization
|
118
|
+
|
119
|
+
No authorization required
|
120
|
+
|
121
|
+
### HTTP reuqest headers
|
122
|
+
|
123
|
+
- **Content-Type**: Not defined
|
124
|
+
- **Accept**: application/json
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
# **get_dealer_active_inventory**
|
129
|
+
> BaseListing get_dealer_active_inventory(api_key, dealer_id, opts)
|
130
|
+
|
131
|
+
Dealer inventory
|
132
|
+
|
133
|
+
Get a dealer's currently active inventory
|
134
|
+
|
135
|
+
### Example
|
136
|
+
```ruby
|
137
|
+
# load the gem
|
138
|
+
require 'marketcheck_ruby_client'
|
139
|
+
|
140
|
+
api_instance = SwaggerClient::DealerApi.new
|
141
|
+
|
142
|
+
api_key = "api_key_example" # String | The API Authentication Key. Mandatory with all API calls.
|
143
|
+
|
144
|
+
dealer_id = "dealer_id_example" # String | Id representing the dealer to fetch the active inventory for
|
145
|
+
|
146
|
+
opts = {
|
147
|
+
rows: "rows_example", # String | Number of results to return. Default is 10. Max is 50
|
148
|
+
start: "start_example" # String | Page number to fetch the results for the given criteria. Default is 1. Pagination is allowed only till first 1000 results for the search and sort criteria. The page value can be only between 1 to 1000/rows
|
149
|
+
}
|
150
|
+
|
151
|
+
begin
|
152
|
+
#Dealer inventory
|
153
|
+
result = api_instance.get_dealer_active_inventory(api_key, dealer_id, opts)
|
154
|
+
p result
|
155
|
+
rescue SwaggerClient::ApiError => e
|
156
|
+
puts "Exception when calling DealerApi->get_dealer_active_inventory: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
|
162
|
+
Name | Type | Description | Notes
|
163
|
+
------------- | ------------- | ------------- | -------------
|
164
|
+
**api_key** | **String**| The API Authentication Key. Mandatory with all API calls. |
|
165
|
+
**dealer_id** | **String**| Id representing the dealer to fetch the active inventory for |
|
166
|
+
**rows** | **String**| Number of results to return. Default is 10. Max is 50 | [optional]
|
167
|
+
**start** | **String**| Page number to fetch the results for the given criteria. Default is 1. Pagination is allowed only till first 1000 results for the search and sort criteria. The page value can be only between 1 to 1000/rows | [optional]
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**BaseListing**](BaseListing.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
No authorization required
|
176
|
+
|
177
|
+
### HTTP reuqest headers
|
178
|
+
|
179
|
+
- **Content-Type**: Not defined
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
# **get_dealer_historical_inventory**
|
185
|
+
> BaseListing get_dealer_historical_inventory(dealer_id)
|
186
|
+
|
187
|
+
Dealer's historical inventory
|
188
|
+
|
189
|
+
[v1 : Not Implemented Yet] - Get a dealer's historical inventory
|
190
|
+
|
191
|
+
### Example
|
192
|
+
```ruby
|
193
|
+
# load the gem
|
194
|
+
require 'marketcheck_ruby_client'
|
195
|
+
|
196
|
+
api_instance = SwaggerClient::DealerApi.new
|
197
|
+
|
198
|
+
dealer_id = "dealer_id_example" # String | Id representing the dealer to fetch the active inventory for
|
199
|
+
|
200
|
+
|
201
|
+
begin
|
202
|
+
#Dealer's historical inventory
|
203
|
+
result = api_instance.get_dealer_historical_inventory(dealer_id)
|
204
|
+
p result
|
205
|
+
rescue SwaggerClient::ApiError => e
|
206
|
+
puts "Exception when calling DealerApi->get_dealer_historical_inventory: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
Name | Type | Description | Notes
|
213
|
+
------------- | ------------- | ------------- | -------------
|
214
|
+
**dealer_id** | **String**| Id representing the dealer to fetch the active inventory for |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
[**BaseListing**](BaseListing.md)
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
No authorization required
|
223
|
+
|
224
|
+
### HTTP reuqest headers
|
225
|
+
|
226
|
+
- **Content-Type**: Not defined
|
227
|
+
- **Accept**: application/json
|
228
|
+
|
229
|
+
|
230
|
+
|