A Ruby client to access PromoStandards data from suppliers.
Currently, only interfaces the Product Data service. You can get ids of all sellable products for a given supplier.
- Add tests
- Handle the case when the given company code is incorrect
- Return both
product_id
andpart_id
both - Provide interfaces to other services as well
Add this line to your application's Gemfile:
gem 'promostandards-client', :github => 'promohunt/promostandards-client'
And then execute:
$ bundle
require 'promostandards/client.rb'
client = PromoStandards::Client.new
product_ids = client.get_sellable_product_ids_for(
company_code: 'STAR',
username: 'username',
password: 'password'
)
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/promohunt/promostandards-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the promostandards-client
project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
promostandards-client is maintained and funded by PromoHunt, inc. The names and logos for PromoHunt are trademarks of PromoHunt, inc.
PromoHunt is a browser extension that helps promotional products distributors & suppliers save time and money.