Afterbuy
This is a wrapper for the afterbuy API.
API's definition is documented here: http://xmldoku.afterbuy.de/dokued/
Installation
Add this line to your application's Gemfile:
gem 'afterbuy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install afterbuy
Usage
Afterbuy.configure do |config|
config.partner_id = 'valid_partner_id'
config.partner_password = 'valid_partner_password'
config.user_id = 'valid_user_id'
config.user_password = 'valid_user_password'
end
afterbuy = Afterbuy::API.new
afterbuy.call('GetAfterbuyTime')
=> #<Afterbuy::TimeResponse
call_status="Success",
call_name="GetAfterbuyTime",
version_id="8",
result=#<Afterbuy::Result
afterbuy_timestamp="01.04.2015 16:52:35",
afterbuy_universal_timestamp="01.04.2015 14:52:35">>
Contributing
- Fork it ( https://github.com/[my-github-username]/afterbuy/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request