0.0
No commit activity in last 3 years
No release in over 3 years
Integration of Auto.Ria API for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0
 Project Readme

Auto Ria Api

This gem provides integration with https://auto.ria.com/

Please NOTE that this is very early version and not all endpoints are implemented.

Installation

Add this line to your application's Gemfile:

gem 'auto_ria_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install auto_ria_api

Usage

First of all you need an api_key which you can get at https://developers.ria.com

# create an instance 
@client = AutoRiaApi::Base.new(api_key: ENV['AUTO_RIA_API_KEY'])

# Methods:
@client.types
@client.carcasses(type:, options: { grouped: false, all: false })
@client.marks(type:)
@client.models(type:, mark, options: { grouped: false, all: false })
@client.regions
@client.cities(region:)
@client.gearboxes(type:)
@client.driver_types(type:)
@client.fuels
@client.colors
@client.options(type:)

@client.info(car_id:)
# all method arguments assuming ID (Integer)

For more detailed documentation follows:

https://github.com/ria-com/auto-ria-rest-api/tree/master/AUTO_RIA_API

https://api-docs-v2.readthedocs.io/ru/latest/auto_ria/index.html

TODO:

  1. Get rid of ::Base namespace. I.e instance should be created directly with AutoRiaApi.new
  2. Implement search
  3. Implement average_price
  4. Implement info endpoints

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/drkmen/auto_ria_api. Help is appreciated Feel free to fork and make a difference!

Tests

run rspec

License

The gem is available as open source under the terms of the MIT License.