0.0
Low commit activity in last 3 years
No release in over a year
Ruby wrapper for NovaPoshta API 2.0.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.25

Runtime

~> 2.2
~> 4.1
 Project Readme

NovaposhtaApi

Simple Novaposhta API 2.0 Ruby client. API documentation by link https://devcenter.novaposhta.ua/docs/services/

Installation

Add this line to your application's Gemfile:

gem 'novaposhta_api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install novaposhta_api

Setup

NovaposhtaApi.setup do |config|
  config.api_url = 'https://api.novaposhta.ua/v2.0/json/'
  config.api_key = 'KEY'
end

Usage

Define API client:

client = NovaposhtaApi::Client.new

Cities:

client.cities.all

Settlements:

client.settlements.all

Warehouses:

client.warehouses.all

Create internet document:

client.internet_documents.create(params)

TODO

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/venethub/novaposhta_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

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

Code of Conduct

Everyone interacting in the NovaposhtaApi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.