Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 736 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 736 Bytes

Vinquery

A ruby client for the VinQuery vin decoding web service.

How to install

Bundler

gem vinquery

Rubygems

gem install vinquery

How to use

Vinquery will provide you with a unique url and access_code which is needed for every request. In addition you will need to send the report type you desire. More info is available at the VinQuery site.

require 'vinquery'
vin = Vinquery.get('1FTWX31R19EB18840', {
                    :url => 'VINQUERY_URL',
                    :access_code => 'ACCESS_CODE',
                    :report_type => 'REPORT_TYPE'})

vin.valid? # true
vin.attributes[:make] # Ford