marketcheck_ruby_client 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +133 -0
  3. data/docs/Averages.md +13 -0
  4. data/docs/BaseListing.md +27 -0
  5. data/docs/Build.md +19 -0
  6. data/docs/Dealer.md +23 -0
  7. data/docs/DealerApi.md +230 -0
  8. data/docs/Error.md +9 -0
  9. data/docs/FacetItem.md +9 -0
  10. data/docs/FacetsApi.md +71 -0
  11. data/docs/GraphsApi.md +73 -0
  12. data/docs/HistoricalListing.md +19 -0
  13. data/docs/HistoryApi.md +65 -0
  14. data/docs/InventoryApi.md +113 -0
  15. data/docs/Listing.md +23 -0
  16. data/docs/ListingDebugAttributes.md +13 -0
  17. data/docs/ListingExtraAttributes.md +10 -0
  18. data/docs/ListingMedia.md +9 -0
  19. data/docs/ListingVDP.md +10 -0
  20. data/docs/ListingsApi.md +324 -0
  21. data/docs/Location.md +12 -0
  22. data/docs/MakeModel.md +9 -0
  23. data/docs/MarketAveragesApi.md +70 -0
  24. data/docs/MarketTrendsApi.md +72 -0
  25. data/docs/PlotPoint.md +14 -0
  26. data/docs/SearchResponse.md +9 -0
  27. data/docs/TrendPoint.md +12 -0
  28. data/docs/VINDecoderApi.md +59 -0
  29. data/git_push.sh +52 -0
  30. data/lib/marketcheck_ruby_client.rb +65 -0
  31. data/lib/swagger_client/api/dealer_api.rb +312 -0
  32. data/lib/swagger_client/api/facets_api.rb +105 -0
  33. data/lib/swagger_client/api/graphs_api.rb +108 -0
  34. data/lib/swagger_client/api/history_api.rb +95 -0
  35. data/lib/swagger_client/api/inventory_api.rb +155 -0
  36. data/lib/swagger_client/api/listings_api.rb +474 -0
  37. data/lib/swagger_client/api/market_averages_api.rb +102 -0
  38. data/lib/swagger_client/api/market_trends_api.rb +108 -0
  39. data/lib/swagger_client/api/vin_decoder_api.rb +89 -0
  40. data/lib/swagger_client/api_client.rb +332 -0
  41. data/lib/swagger_client/api_error.rb +36 -0
  42. data/lib/swagger_client/configuration.rb +163 -0
  43. data/lib/swagger_client/models/averages.rb +217 -0
  44. data/lib/swagger_client/models/base_listing.rb +370 -0
  45. data/lib/swagger_client/models/build.rb +284 -0
  46. data/lib/swagger_client/models/dealer.rb +329 -0
  47. data/lib/swagger_client/models/error.rb +173 -0
  48. data/lib/swagger_client/models/facet_item.rb +173 -0
  49. data/lib/swagger_client/models/historical_listing.rb +284 -0
  50. data/lib/swagger_client/models/listing.rb +327 -0
  51. data/lib/swagger_client/models/listing_debug_attributes.rb +217 -0
  52. data/lib/swagger_client/models/listing_extra_attributes.rb +188 -0
  53. data/lib/swagger_client/models/listing_media.rb +175 -0
  54. data/lib/swagger_client/models/listing_vdp.rb +185 -0
  55. data/lib/swagger_client/models/location.rb +207 -0
  56. data/lib/swagger_client/models/make_model.rb +171 -0
  57. data/lib/swagger_client/models/plot_point.rb +228 -0
  58. data/lib/swagger_client/models/search_response.rb +175 -0
  59. data/lib/swagger_client/models/trend_point.rb +206 -0
  60. data/lib/swagger_client/version.rb +15 -0
  61. data/marketcheck_ruby_client-1.0.6.gem +0 -0
  62. data/marketcheck_ruby_client.gemspec +32 -0
  63. data/spec/api/dealer_api_spec.rb +109 -0
  64. data/spec/api/facets_api_spec.rb +57 -0
  65. data/spec/api/graphs_api_spec.rb +58 -0
  66. data/spec/api/history_api_spec.rb +54 -0
  67. data/spec/api/inventory_api_spec.rb +70 -0
  68. data/spec/api/listings_api_spec.rb +148 -0
  69. data/spec/api/market_averages_api_spec.rb +57 -0
  70. data/spec/api/market_trends_api_spec.rb +57 -0
  71. data/spec/api/vin_decoder_api_spec.rb +52 -0
  72. data/spec/models/averages_spec.rb +96 -0
  73. data/spec/models/base_listing_spec.rb +236 -0
  74. data/spec/models/build_spec.rb +156 -0
  75. data/spec/models/dealer_spec.rb +196 -0
  76. data/spec/models/error_spec.rb +56 -0
  77. data/spec/models/facet_item_spec.rb +56 -0
  78. data/spec/models/historical_listing_spec.rb +156 -0
  79. data/spec/models/listing_debug_attributes_spec.rb +96 -0
  80. data/spec/models/listing_extra_attributes_spec.rb +66 -0
  81. data/spec/models/listing_media_spec.rb +56 -0
  82. data/spec/models/listing_spec.rb +196 -0
  83. data/spec/models/listing_vdp_spec.rb +66 -0
  84. data/spec/models/location_spec.rb +86 -0
  85. data/spec/models/make_model_spec.rb +56 -0
  86. data/spec/models/plot_point_spec.rb +106 -0
  87. data/spec/models/search_response_spec.rb +56 -0
  88. data/spec/models/trend_point_spec.rb +86 -0
  89. metadata +337 -0
@@ -0,0 +1,57 @@
1
+ =begin
2
+ Marketcheck Cars API
3
+
4
+ <b>Access the 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>
5
+
6
+ OpenAPI spec version: 1.0.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::FacetsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'FacetsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::FacetsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of FacetsApi' do
30
+ it 'should create an instact of FacetsApi' do
31
+ @instance.should be_a(SwaggerClient::FacetsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_facets
36
+ # Facets
37
+ # [Merged with the /search API - Please check the &#39;facets&#39; parameter to the Search API above] Get the facets for the given simple filter criteria (by given VIN&#39;s basic specification, Or by Year, Make, Model, Trim criteria) and facet fields
38
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
39
+ # @param fields Comma separated list of fields to generate facets for. Supported fields are - year, make, model, trim, exterior_color, interior_color, drivetrain, vehicle_type, car_type, body_style, body_subtype, doors
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :vin VIN as a reference to the type of car for which facets data is to be returned
42
+ # @option opts [String] :year Year of the car
43
+ # @option opts [String] :make Make of the car
44
+ # @option opts [String] :model Model of the Car
45
+ # @option opts [String] :trim Trim of the Car
46
+ # @return [Array<FacetItem>]
47
+ describe 'get_facets test' do
48
+ it "should work" do
49
+ # assertion here
50
+ # should be_a()
51
+ # should be_nil
52
+ # should ==
53
+ # should_not ==
54
+ end
55
+ end
56
+
57
+ end
@@ -0,0 +1,58 @@
1
+ =begin
2
+ Marketcheck Cars API
3
+
4
+ <b>Access the 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>
5
+
6
+ OpenAPI spec version: 1.0.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::GraphsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'GraphsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::GraphsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GraphsApi' do
30
+ it 'should create an instact of GraphsApi' do
31
+ @instance.should be_a(SwaggerClient::GraphsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_price_miles_plot_data
36
+ # Price, Miles plots data for given criteria
37
+ # Get price, miles plot data for active cars matching the given VIN&#39;s basic specification or Year, Make, Model, Trim (Optional) criteria
38
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
39
+ # @param car_type Car type to get the scatter plot data for
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :vin VIN as a reference to the type of car for which plot data is to be returned
42
+ # @option opts [String] :year Year of the car
43
+ # @option opts [String] :make Make of the car
44
+ # @option opts [String] :model Model of the Car
45
+ # @option opts [String] :trim Trim of the Car
46
+ # @option opts [String] :rows Number of results to return. Default is 1000. Max is 10000
47
+ # @return [Array<PlotPoint>]
48
+ describe 'get_price_miles_plot_data test' do
49
+ it "should work" do
50
+ # assertion here
51
+ # should be_a()
52
+ # should be_nil
53
+ # should ==
54
+ # should_not ==
55
+ end
56
+ end
57
+
58
+ end
@@ -0,0 +1,54 @@
1
+ =begin
2
+ Marketcheck Cars API
3
+
4
+ <b>Access the 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>
5
+
6
+ OpenAPI spec version: 1.0.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::HistoryApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'HistoryApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::HistoryApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of HistoryApi' do
30
+ it 'should create an instact of HistoryApi' do
31
+ @instance.should be_a(SwaggerClient::HistoryApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for history
36
+ # Get a cars online listing history
37
+ # The history API returns online listing history for a car identified by its VIN. History listings are sorted in the descending order of the listing date / last seen date
38
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
39
+ # @param vin The VIN to identify the car to fetch the listing history. Must be a valid 17 char VIN
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [Float] :rows Number of results to return. Default is 10. Max is 50
42
+ # @option opts [Float] :page Page number to fetch the results for the given criteria. Default is 1.
43
+ # @return [Array<HistoricalListing>]
44
+ describe 'history test' do
45
+ it "should work" do
46
+ # assertion here
47
+ # should be_a()
48
+ # should be_nil
49
+ # should ==
50
+ # should_not ==
51
+ end
52
+ end
53
+
54
+ end
@@ -0,0 +1,70 @@
1
+ =begin
2
+ Marketcheck Cars API
3
+
4
+ <b>Access the 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>
5
+
6
+ OpenAPI spec version: 1.0.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::InventoryApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'InventoryApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::InventoryApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of InventoryApi' do
30
+ it 'should create an instact of InventoryApi' do
31
+ @instance.should be_a(SwaggerClient::InventoryApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_dealer_active_inventory
36
+ # Dealer inventory
37
+ # Get a dealer&#39;s currently active inventory
38
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
39
+ # @param dealer_id Id representing the dealer to fetch the active inventory for
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :rows Number of results to return. Default is 10. Max is 50
42
+ # @option opts [String] :start 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
43
+ # @return [BaseListing]
44
+ describe 'get_dealer_active_inventory test' do
45
+ it "should work" do
46
+ # assertion here
47
+ # should be_a()
48
+ # should be_nil
49
+ # should ==
50
+ # should_not ==
51
+ end
52
+ end
53
+
54
+ # unit tests for get_dealer_historical_inventory
55
+ # Dealer&#39;s historical inventory
56
+ # [v1 : Not Implemented Yet] - Get a dealer&#39;s historical inventory
57
+ # @param dealer_id Id representing the dealer to fetch the active inventory for
58
+ # @param [Hash] opts the optional parameters
59
+ # @return [BaseListing]
60
+ describe 'get_dealer_historical_inventory test' do
61
+ it "should work" do
62
+ # assertion here
63
+ # should be_a()
64
+ # should be_nil
65
+ # should ==
66
+ # should_not ==
67
+ end
68
+ end
69
+
70
+ end
@@ -0,0 +1,148 @@
1
+ =begin
2
+ Marketcheck Cars API
3
+
4
+ <b>Access the 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>
5
+
6
+ OpenAPI spec version: 1.0.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::ListingsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ListingsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::ListingsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ListingsApi' do
30
+ it 'should create an instact of ListingsApi' do
31
+ @instance.should be_a(SwaggerClient::ListingsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_listing
36
+ # Listing by id
37
+ # Get a particular listing by its id
38
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
39
+ # @param id Listing id to get all the listing attributes
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Listing]
42
+ describe 'get_listing test' do
43
+ it "should work" do
44
+ # assertion here
45
+ # should be_a()
46
+ # should be_nil
47
+ # should ==
48
+ # should_not ==
49
+ end
50
+ end
51
+
52
+ # unit tests for get_listing_extra
53
+ # Long text Listings attributes for Listing with the given id
54
+ # Get listing options, features, seller comments
55
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
56
+ # @param id Listing id to get all the long text listing attributes
57
+ # @param [Hash] opts the optional parameters
58
+ # @return [ListingExtraAttributes]
59
+ describe 'get_listing_extra test' do
60
+ it "should work" do
61
+ # assertion here
62
+ # should be_a()
63
+ # should be_nil
64
+ # should ==
65
+ # should_not ==
66
+ end
67
+ end
68
+
69
+ # unit tests for get_listing_media
70
+ # Listing media by id
71
+ # Get listing media (photo, photos) by id
72
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
73
+ # @param id Listing id to get all the listing attributes
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [ListingMedia]
76
+ describe 'get_listing_media test' do
77
+ it "should work" do
78
+ # assertion here
79
+ # should be_a()
80
+ # should be_nil
81
+ # should ==
82
+ # should_not ==
83
+ end
84
+ end
85
+
86
+ # unit tests for get_listing_vdp
87
+ # Get listing HTML
88
+ # Cached HTML of the Vehicle Details Page (VDP) for the listing. The HTML is cached only for 7 days for all listings. So this API could be used to get HTML of mostly active listings and that have recently expired
89
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
90
+ # @param id Listing id to get the vehicle details page (VDP) HTML
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [ListingVDP]
93
+ describe 'get_listing_vdp test' do
94
+ it "should work" do
95
+ # assertion here
96
+ # should be_a()
97
+ # should be_nil
98
+ # should ==
99
+ # should_not ==
100
+ end
101
+ end
102
+
103
+ # unit tests for search
104
+ # Gets active car listings for the given search criteria
105
+ # This endpoint is the meat of the API and serves many purposes. This API produces a list of currently active cars from the market for the given search criteria. The API results are limited to allow pagination upto 1000 rows. \n The search API facilitates the following use cases - \n1. Search Cars around a given geo-point within a given radius \n2. Search cars for a specific year / make / model or combination of these \n3. Search cars matching multiple year, make, model combinatins in the same search request\n4. Filter results by most car specification attributes\n5. Search for similar cars by VIN or Taxonomy VIN \n6. Filter cars within a given price / miles / days on market (dom) range\n7. Specify a sort order for the results on price / miles / dom / listed date \n8. Search cars for a given City / State combination \n9. Get Facets to build the search drill downs \n10. Get Market averages for price/miles/dom/msrp for your search
106
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
107
+ # @param latitude Latitude component of location
108
+ # @param longitude Longitude component of location
109
+ # @param radius Radius around the search location
110
+ # @param car_type Car type. Allowed values are - new / used / certified
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :year Car year - 1980 onwards. You can pass in multiple year separated by comma e.g. 2010,2011
113
+ # @option opts [String] :make Car Make - should be a standard OEM Make name
114
+ # @option opts [String] :model Car model to search
115
+ # @option opts [String] :trim Car trim to search
116
+ # @option opts [String] :dealer_id Dealer id to filter the cars
117
+ # @option opts [String] :body_type Body type to filter the cars on
118
+ # @option opts [String] :body_subtype Body subtype to filter the cars on
119
+ # @option opts [String] :vehicle_type Vehicle type to filter the cars on
120
+ # @option opts [String] :vins Comma separated list of 17 digit vins to search the matching cars for. Only 10 VINs allowed per request. If the request contains more than 10 VINs the first 10 VINs will be considered. Could be used as a More Like This or Similar Vehicles search for the given VINs. Ths vins parameter is an alternative to taxonomy_vins or ymmt parameters available with the search API. vins and taxonomy_vins parameters could be used to filter our cars with the exact build represented by the vins or taxonomy_vins whereas ymmt is a top level filter that does not filter cars by the build attributes like doors, drivetrain, cylinders, body type, body subtype, vehicle type etc
121
+ # @option opts [String] :taxonomy_vins Comma separated list of 10 letters excert from the 17 letter VIN. The 10 letters to be picked up from the 17 letter VIN are - first 8 letters and the 10th and 11th letter. E.g. For a VIN - 1FTFW1EF3EKE57182 the taxonomy vin would be - 1FTFW1EFEK A taxonomy VIN identified a build of a car and could be used to filter our cars of a particular build. This is an alternative to the vin or ymmt parameters to the search API.
122
+ # @option opts [String] :ymmt Comma separated list of Year, Make, Model, Trim combinations. Each combination needs to have the year,make,model, trim values separated by a pipe &#39;|&#39; character in the form year|make|model|trim. e.g. 2010|Audi|A5,2014|Nissan|Sentra|S 6MT,|Honda|City| You could just provide strings of the form - &#39;year|make||&#39; or &#39;year|make|model&#39; or &#39;|make|model|&#39; combinations. Individual year / make / model filters provied with the API calls will take precedence over the Year, Make, Model, Trim combinations. The Make, Model, Trim values must be valid values as per the Marketcheck Vin Decoder. If you are using a separate vin decoder then look at using the &#39;vins&#39; or &#39;taxonomy_vins&#39; parameter to the search api instead the year|make|model|trim combinations.
123
+ # @option opts [String] :cylinders Cylinders to filter the cars on
124
+ # @option opts [String] :transmission Transmission to filter the cars on. [a = Automatic, m = Manual]
125
+ # @option opts [String] :drivetrain Drivetrain to filter the cars on.
126
+ # @option opts [String] :exterior_color Exterior color to match
127
+ # @option opts [String] :interior_color Interior color to match
128
+ # @option opts [String] :miles_range Miles range to filter cars with miles in the given range. Range to be given in the format - min-max e.g. 1000-5000
129
+ # @option opts [String] :price_range Price range to filter cars with the price in the range given. Range to be given in the format - min-max e.g. 1000-5000
130
+ # @option opts [String] :dom_range Days on Market range to filter cars with the DOM within the given range. Range to be given in the format - min-max e.g. 10-50
131
+ # @option opts [String] :sort_by Sort by field - allowed fields are distance|price|miles|dom|age|posted_at|year. Default sort field is distance from the given point
132
+ # @option opts [String] :sort_order Sort order - asc or desc. Default sort order is distance from a point.
133
+ # @option opts [String] :rows Number of results to return. Default is 10. Max is 50
134
+ # @option opts [String] :start 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
135
+ # @option opts [String] :facets The comma separated list of fields for which facets are requested. Supported fields are - year, make, model, trim, vehicle_type, car_type, body_type, body_subtype, drivetrain, cylinders, transmission, exterior_color, interior_color. Facets could be requested in addition to the listings for the search. Please note - The API calls with lots of facet fields may take longer to respond.
136
+ # @option opts [String] :stats The list of fields for which stats need to be generated based on the matching listings for the search criteria. Allowed fields are - price, miles, msrp, dom The stats consists of mean, max, average and count of listings based on which the stats are calculated for the field. Stats could be requested in addition to the listings for the search. Please note - The API calls with the stats fields may take longer to respond.
137
+ # @return [SearchResponse]
138
+ describe 'search test' do
139
+ it "should work" do
140
+ # assertion here
141
+ # should be_a()
142
+ # should be_nil
143
+ # should ==
144
+ # should_not ==
145
+ end
146
+ end
147
+
148
+ end
@@ -0,0 +1,57 @@
1
+ =begin
2
+ Marketcheck Cars API
3
+
4
+ <b>Access the 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>
5
+
6
+ OpenAPI spec version: 1.0.3
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::MarketAveragesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'MarketAveragesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::MarketAveragesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of MarketAveragesApi' do
30
+ it 'should create an instact of MarketAveragesApi' do
31
+ @instance.should be_a(SwaggerClient::MarketAveragesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_averages
36
+ # Get Averages for YMM
37
+ # [Merged with the /search API - Please check the &#39;stats&#39; parameter to the Search API above] Get market averages for price / miles / msrp / dom (days on market) fields for active cars matching the given reference VIN&#39;s basic specification or Year, Make, Model, Trim (Optional) criteria
38
+ # @param api_key The API Authentication Key. Mandatory with all API calls.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :vin VIN as a reference to the type of car for which averages data is to be returned
41
+ # @option opts [String] :year Year of the car
42
+ # @option opts [String] :make Make of the car
43
+ # @option opts [String] :model Model of the Car
44
+ # @option opts [String] :trim Trim of the Car
45
+ # @option opts [String] :fields Comma separated list of fields to generate stats for. Allowed fields in the list are - price, miles, msrp, dom (days on market)
46
+ # @return [Averages]
47
+ describe 'get_averages test' do
48
+ it "should work" do
49
+ # assertion here
50
+ # should be_a()
51
+ # should be_nil
52
+ # should ==
53
+ # should_not ==
54
+ end
55
+ end
56
+
57
+ end