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

presta_shop

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

presta_shop

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

PrestaShop

PrestaShop is a ruby gem to interact with a Prestashop API

this gem was originally forked from Prestashopper

Installation

add presta_shop Gemfile

gem 'presta_shop'

Usage

verify PrestaShop api is enabled

PrestaShop.api_enabled? 'my.prestashop.com'
 => true

check api key is valid

PrestaShop.valid_key? 'my.prestashop.com', 'VALID_KEY'
 => true

create a PrestaShop api object

api = PrestaShop::API.new 'my.prestashop.com', 'VALID_KEY'

list resources available for the api key

api.resources
 => [:customers, :orders, :products] 

get a list of ids for an available resource

order_ids = api.orders.list
 => [1, 2, 3, 4, 5, 6]

get a specific resource by id

order = api.order.find(1)
 => #<PrestaShop::Order id=1, ...>

get an array of resources

orders = api.orders.find(1, 2, 3)
 => [#<PrestaShop::Order id=1, ...>, #<PrestaShop::Order id=2, ...>, #<PrestaShop::Order id=3, ...>]

FAQs

Package last updated on 06 Sep 2016

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