0.0
No commit activity in last 3 years
No release in over 3 years
Gem API NOVA POSHTA(Новая почта, Нова пошта) for all ruby projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2, < 3
>= 0
>= 10.0, < 13.0
~> 3.0

Runtime

~> 1.10.4
 Project Readme

NovaPoshtaApi

One more ruby-client to Nova Poshta API 2.0

https://my.novaposhta.ua/data/instruction_JSON_ver.2.0.pdf

Installation

Add this line to your application's Gemfile:

gem 'nova_poshta_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nova_poshta_api

Usage

config/aplication.rb

NovaPoshtaApi.configure do |config|
  config.url     = 'https://api.novaposhta.ua/v2.0/{format}/'
  config.format  = :json # or :xml
  config.api_key = '...'
end

methods

NovaPoshtaApi::Request.cities # => hash

NovaPoshtaApi::Request.find_city(name) # => hash

NovaPoshtaApi::Request.settlements(page) # => hash

NovaPoshtaApi::Request.areas # => hash

NovaPoshtaApi::Request.warehouses # => hash

NovaPoshtaApi::Request.warehouse_types # => hash

NovaPoshtaApi::Request.street(city_ref) # => hash

NovaPoshtaApi::Request.find_street(city_ref, name) # => hash

NovaPoshtaApi::Request.service_types # => hash

License

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