Project

baabedo

0.0
No commit activity in last 3 years
No release in over 3 years
Baabedo is an easy to use price optimization AI. See https://baabedo.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.2

Runtime

~> 1.8.1
 Project Readme

Baabedo Ruby bindings

Ruby bindings for the Baabedo API

still under construction

Installation

Add this line to your application's Gemfile:

gem 'baabedo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install baabedo

Usage

Simple usage:

Baabedo.access_token = 'xxxxxxxxxxxxx'

Baabedo::Channel.all # list all channels

Advanced usage if you need to handle different access_tokens

client = Baabedo::Client.new
client.access_token = 'xxxxxxxxxxxxx'

# the access_token and any other configuration made on the client will only be used inside this block
client.use do
  Baabedo::Channel.all
end

Orders

Retrieving a order of a channel:

order = Baabedo::Order.retrieve('3ea8cd7e9d16e5f5799d9c5f', channel_id: '2d2222fedbdf2dad')

Search for orders:

orders = Baabedo::Order.search('custom.amazon.order_id: "0323-2323-fake"', channel_id: '5d49f30b9daa5bb7')

Updating a order without fetching it first:

order = Baabedo::Order.new('3ea8cd7e9d16e5f5799d9c5f', channel_id: '2d2222fedbdf2dad')
order.custom = { foo: 'bar' }
order.save

Contributing

For bugfixes:

  1. Fork it ( https://github.com/[my-github-username]/baabedo-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

For new features:

If you want to request a new feature in the API, please create an issue first. :)

Thank you

A huge thank you to the Stripe team for stripe-ruby!

This gem is based on stripe-ruby at 8ba1a0e4908cccf20198791aa8f72acc63575589