JSPM

api-vappsmart

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q18787F

api for ecommerce

Package Exports

  • api-vappsmart

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (api-vappsmart) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

api-vappsmart for react native

We used in react native app [climate-url]: http://vappsmart.com/

Install

yarn add api-vappsmart

Quick Start

import { WooWorker } from "api-vappsmart"

componentDidMount() {
    WooWorker.init({
        url: "http://vappsmart.com",
        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)
    }
}