Socket
Socket
Sign inDemoInstall

@amplience/sap-product-browser

Package Overview
Dependencies
100
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @amplience/sap-product-browser

[![Amplience Dynamic Content](header.png)](https://amplience.com/dynamic-content)


Version published
Weekly downloads
3
increased by50%
Maintainers
6
Install size
11.7 MB
Created
Weekly downloads
 

Readme

Source

Amplience Dynamic Content

SAP product browser lib

Build Status

This project is a small client library for communicating with SAP commerce cloud(C4Hana) Hybris.

Building

Build locally:

$ npm install
$ npm run-script build

Usage

This lib contains a client product-service with the following functions to retrieve products from hybris:

  • search: this requires a catalogue and a query to retrieve a paginated list of products.
  • getByCode: this uses a catalogue and a product code to retrieve a single product. Both functions use the defaultImageOptions to find a default image url and attach to the product this will be defaulted to defaultNotFoundImage if none are found.

Constructor params

  • host: URL of deployed Hybris instance.
  • basPath: path to Hybris API.
  • defaultNotFoundImage: URL to default image if no image available from product.
  • authTokenSupplier: Function to return auth token (can be null if no auth needed).
  • defaultImageOptions:
    • format: defaulted to 'thumbnail'.
    • type: defaulted to 'PRIMARY'.

FAQs

Last updated on 05 Feb 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc