Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inspireui/api-ecommerce
api e-commerce
https://github.com/inspireui/api-ecommerce
Last synced: 2 months ago
JSON representation
api e-commerce
- Host: GitHub
- URL: https://github.com/inspireui/api-ecommerce
- Owner: inspireui
- Created: 2018-07-04T04:16:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T04:21:20.000Z (about 4 years ago)
- Last Synced: 2024-10-31T19:37:05.408Z (2 months ago)
- Language: JavaScript
- Size: 80.1 KB
- Stars: 21
- Watchers: 3
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
api-ecommerce for react native
We used in react native app
[climate-url]: http://mstore.io/## Install
```
yarn add api-ecommerce
```## Quick Start
```js
import { WooWorker } from "api-ecommerce"componentDidMount() {
WooWorker.init({
url: "http://mstore.io",
consumerKey: "ck_b7594bc4391db4b56c635fe6da1072a53ca4xxxx",
consumerSecret: "cs_980b9edb120e15bd2a8b668cacc734f7ecaxxxx",
wpAPI: true,
version: "wc/v2",
queryStringAuth: true,
});
}handleWooWorker = async () => {
json = await WooWorker.getPayments();if (json === undefined) {
console.log("fail");
} else if (json.code) {
console.log("fail");
} else {
console.log("success", json)
}
}
```