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

hybris-occ-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hybris-occ-client

Hybris OCC API JavaScript Client library

  • 0.1.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

hybris-occ-client


    __            __           _                                               __ _               __ 
   / /_   __  __ / /_   _____ (_)_____        ____   _____ _____        _____ / /(_)___   ____   / /_
  / __ \ / / / // __ \ / ___// // ___/______ / __ \ / ___// ___/______ / ___// // // _ \ / __ \ / __/
 / / / // /_/ // /_/ // /   / /(__  )/_____// /_/ // /__ / /__ /_____// /__ / // //  __// / / // /_  
/_/ /_/ \__, //_.___//_/   /_//____/        \____/ \___/ \___/        \___//_//_/ \___//_/ /_/ \__/  
       /____/                                                                                        

NPM CircleCI

A JavaScript Client library crafted for Hybris Commerce OCC API.

⚒ Installation

This library is distributed on npm, in order to add it as a dependency, run the following command:

npm install hybris-occ-client --save

💡 Usage

Example: create your hybris client instance

import * as hybris from 'hybris-occ-client'

const config = {
    basePath: "https://api-example.hybris.com/rest/v2/apparel-uk",
    defaultHeaders: {},
    timeout: 60000,
    cache: true,
    enableCookies: false
    access_token: your_OAuth_access_token
}

// Override the default instance with your configuration
hybris.ApiClient.instance = new hybris.ApiClient(config)
const client = hybris.ApiClient.instance

📖 Documentation

You can find the complete documentation for endpoints and models at here

✅ Testing

Because Hybris OCC is not public available, you need to have a running instance that you can test against. In the test folder, there is a file example.env.json that has the example configuration for your environment. Simply create a file env.json, and fill out the required fields.

Example:

{
  "basePath": "https://<Your Hybris Instance>/rest/v2/apparel-uk",
  "OAuth": {
    "authorizationUrl": "https://<Your Hybris Instance>/authorizationserver/oauth/token",
    "client_id": "mobile_android",
    "client_secret": "secret",
    "grant_type": "client_credentials"
  }
}

👥 Owner

This project is open sourced and actively maintained by Mobify. We will make an effort to support the library, but we reserve the right to make incompatible changes when necessary.

🏅 Contributors

FAQs

Package last updated on 17 May 2019

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