markysharky70 / promostandards-client

A Ruby client for PromoStandards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

promostandards-client

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.

TO DO

  • Add tests
  • Handle the case when the given company code is incorrect
  • Return both product_id and part_id both
  • Provide interfaces to other services as well

Installation

Add this line to your application's Gemfile:

gem 'promostandards-client',  :github => 'promohunt/promostandards-client'

And then execute:

$ bundle

Usage

require 'promostandards/client.rb'

client = PromoStandards::Client.new

product_ids = client.get_sellable_product_ids_for(
  company_code: 'STAR',
  username: 'username',
  password: 'password'
)

Development

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.

Contributing

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.

License

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

Code of Conduct

Everyone interacting in the promostandards-client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About PromoHunt

PromoHunt Logo

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.

About

A Ruby client for PromoStandards

License:MIT License


Languages

Language:Ruby 98.0%Language:Shell 2.0%