Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bhavik66/brainstack-api-ecommerce
https://github.com/bhavik66/brainstack-api-ecommerce
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bhavik66/brainstack-api-ecommerce
- Owner: bhavik66
- Created: 2020-05-19T20:10:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-02T11:30:05.000Z (over 3 years ago)
- Last Synced: 2023-03-07T17:16:31.251Z (almost 2 years ago)
- Language: JavaScript
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
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)
}
}
```