Project

dadata

0.0
No commit activity in last 3 years
No release in over 3 years
Dadata.ru API integration
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17, < 3.0
~> 2.13
~> 5.0
~> 10.0
~> 1.3
~> 3.7
 Project Readme

Dadata

Dadata.ru API integration wrapper for ruby projects.

Installation

Add this line to your application's Gemfile:

gem 'dadata'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dadata

Usage

require 'dadata'

dadata = Dadata::Suggestion.new(api_key: 'YOURKEY')
dadata.organization('ООО Рога и копыта')
# => [{ value: "ПАО БАНК", ... }]

dadata.address_by_id('203221a4-dde4-4954-99cb-e788df9d0ce8')
# => [{ value: "г Казань, ул Кремлевская, д 1", ... }]

dadata.address_by_str('Ижевск г, Устиновский район, Им Конструктора Калашникова М.Т. пр-кт, 17')
# => [{ value: "г Ижевск, пр-кт Им Конструктора Калашникова М.Т., д 17", ... }]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rgarifullin/dadata.

License

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