hybris-occ-client

所属分类:Julia编程
开发工具:HTML
文件大小:0KB
下载次数:0
上传日期:2019-05-17 20:27:17
上 传 者sh-1993
说明:  用于Node_and_浏览器的Hybris Omni-Commerce Connect(OCC)客户端。
(Hybris Omni Commerce Connect (OCC) client for Node _and_ browsers.)

文件列表:
.babelrc (349, 2019-05-17)
.circleci/ (0, 2019-05-17)
.circleci/config.yml (1004, 2019-05-17)
.eslintignore (22, 2019-05-17)
.eslintrc.yml (146, 2019-05-17)
.jsdocrc (287, 2019-05-17)
.swagger-codegen-ignore (1030, 2019-05-17)
.swagger-codegen/ (0, 2019-05-17)
.swagger-codegen/VERSION (5, 2019-05-17)
.travis.yml (65, 2019-05-17)
CHANGELOG.md (1269, 2019-05-17)
LICENSE (1090, 2019-05-17)
docs/ (0, 2019-05-17)
docs/Address.md (905, 2019-05-17)
docs/AddressList.md (191, 2019-05-17)
docs/AddressOCC.md (535, 2019-05-17)
docs/ApiClient.js.html (40059, 2019-05-17)
docs/BaseOption.md (316, 2019-05-17)
docs/BillingAddress.md (539, 2019-05-17)
docs/Breadcrumb.md (455, 2019-05-17)
docs/CardType.md (205, 2019-05-17)
docs/CardTypeList.md (194, 2019-05-17)
docs/CardtypesApi.md (1411, 2019-05-17)
docs/Cart.md (2244, 2019-05-17)
docs/CartList.md (178, 2019-05-17)
docs/Catalog.md (368, 2019-05-17)
docs/CatalogList.md (190, 2019-05-17)
docs/CatalogVersion.md (376, 2019-05-17)
docs/CatalogsApi.md (6911, 2019-05-17)
docs/Category.md (255, 2019-05-17)
docs/CategoryHierarchy.md (136, 2019-05-17)
docs/Classification.md (271, 2019-05-17)
docs/Consignment.md (528, 2019-05-17)
docs/ConsignmentEntry.md (294, 2019-05-17)
docs/Country.md (168, 2019-05-17)
docs/CountryList.md (197, 2019-05-17)
docs/CountryOCC.md (210, 2019-05-17)
docs/CurrenciesApi.md (1576, 2019-05-17)
... ...

# hybris-occ-client ``` __ __ _ __ _ __ / /_ __ __ / /_ _____ (_)_____ ____ _____ _____ _____ / /(_)___ ____ / /_ / __ \ / / / // __ \ / ___// // ___/______ / __ \ / ___// ___/______ / ___// // // _ \ / __ \ / __/ / / / // /_/ // /_/ // / / /(__ )/_____// /_/ // /__ / /__ /_____// /__ / // // __// / / // /_ /_/ /_/ \__, //_.___//_/ /_//____/ \____/ \___/ \___/ \___//_//_/ \___//_/ /_/ \__/ /____/ ``` [![NPM](https://nodei.co/npm/hybris-occ-client.png)](https://nodei.co/npm/hybris-occ-client/) [![CircleCI](https://circleci.com/gh/mobify/hybris-occ-client/tree/develop.svg?style=svg)](https://circleci.com/gh/mobify/hybris-occ-client/tree/develop) > 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: ```shell npm install hybris-occ-client --save ``` ## Usage ### Example: create your hybris client instance ```javascript 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](https://mobify.github.io/hybris-occ-client/) ## 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: ```json { "basePath": "https:///rest/v2/apparel-uk", "OAuth": { "authorizationUrl": "https:///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](https://github.com/mobify). We will make an effort to support the library, but we reserve the right to make incompatible changes when necessary. ## Contributors - [@jeremywiebe](https://github.com/jeremywiebe) - [@bendvc](https://github.com/bendvc) - [@kevinxh](https://github.com/kevinxh)

近期下载者

相关文件


收藏者