Skip to content

A Ruby client for RMS(Rakuten Marchant Service) WEB API

License

Notifications You must be signed in to change notification settings

kaicoh/rms_api_ruby

Repository files navigation

RmsApiRuby

Gem Version CircleCI

RmsApiRuby is a ruby gem for the RMS(Rakuten Marchant Service) Web API. By default all API calls will return Hashie::Mash objects.
At this time the APIs this gem supports are as follows.

Support

  • OrderAPI
  • InventoryAPI
  • ItemAPI
  • ProductAPI
  • NavigationAPI
  • RakutenPayOrderAPI

Not Support yet

  • CabinetAPI
  • CategoryAPI
  • CouponAPI
  • ShopManagimentAPI
  • System Event Notification Service
  • PaymentAPI

Installation

Add this line to your application's Gemfile:

gem 'rms_api_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rms_api_ruby

Usage

Configuration

You can set the service secret, license key, shop url in environment variables:

export RMS_API_SERVICE_SECRET="Your RMS service secret"
export RMS_API_LICENSE_KEY="Your RMS license key"
export RMS_API_SHOP_URL="Your RMS shop url"

Or can set any of the options via this way

RmsApiRuby.configure do |config|
  config.service_secret         = 'Your RMS service secret'
  config.license_key            = 'Your RMS license key'
  config.shop_url               = 'Your RMS shop url'
  config.user_name              = 'user name'              # default 'rms_api_ruby'
  config.order_api_version      = 'Order API version'      # default 1.0
  config.inventory_api_version  = 'Inventory API version'  # default 1.0
  config.item_api_version       = 'Item API version'       # default 1.0
  config.product_api_version    = 'Product API version'    # default 2.0
  config.navigation_api_version = 'Navigation API version' # default 1.0
  config.rakuten_pay_order_api_version = 'RakutenPayOrder API version' # default 2.0
end

Examples

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Kaicoh/rms_api_ruby. 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

  1. Fork it ( https://github.com/Kaicoh/rms_api_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

About

A Ruby client for RMS(Rakuten Marchant Service) WEB API

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published