THIS LIBRARY HAS BEEN / IS BEING REPLACED BY https://github.com/allolex/nacre
If you'd like to contribute, then it would be good to do it on the newer library, which will be nicer to code. Features include better support for authentication errors, neater code re-use (mixins FTW) and just generally a more robust approach.
Nacre is a Ruby gem that wraps the API of the Brightpearl accounting software service.
https://www.brightpearl.com/developer/latest/
Add this line to your application's Gemfile:
gem "nacre", :git => "git:https://github.com/allolex/nacre.git"
And then execute:
$ bundle
require 'nacre'
api = Nacre::Api.new( file: 'config/test_config.yml' )
products_list = Nacre::API::Product.all
product = Nacre::API::Product.find(1000)
Make sure you copy the sample config file to test_config.yml
with your credentials.
- Configuration support. See config/ for a sample YAML file.
- API authentication
These are functional, but definitely need some work:
- Product
- Order
- Services
- Accounting
- Contact
- Warehouse
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Many thanks go to Angela Heenan at and Helen Bowling at Brightpearl.
Alex Stupakov, you're an absolute ace for helping to unstick this project.