Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

epages-rest

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epages-rest

  • 1.0.7
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Build Status Code Climate Test Coverage

The ePages REST Ruby Gem

A Ruby interface to the ePages REST API.

Installation

gem install epages-rest

You can require it in the Ruby Interpreter using:

require 'epages-rest'

or add it to your Rails application adding the gem to your Gemfile.

Usage

This gem is used to connect any Ruby application with any ePages shop. You can get any public information of any shop indicating only the name of the shop. But for security reasons, to modify content from your shop, you need the token you will get in the developer environment of your test shop.

Usage examples

The first thing is create your REST shop. shop = Epages::REST::Shop.new(shop_host, shop_name) or shop = Epages::REST::Shop.new(shop_host, shop_name, token)

Additionally, you can indicate if your shop uses https or not (default true) shop = Epages::REST::Shop.new(shop_host, shop_name, token, https: false)

Once this is done, you can use the API calls.

Get products

products = shop.products sorted_products = shop.products(sort: name)

Get Categories

categories = shop.categories

Full collection of examples here

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ePages-de/epages-rest-ruby.

License

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

FAQs

Package last updated on 08 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc