2.10.0-rc3 • Published 8 months ago

@matech/thebigpos-sdk v2.10.0-rc3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

The BIG POS Typescript SDK

Installation

Using npm:

$ npm install @matech/thebigpos-sdk

Using yarn:

$ yarn add @matech/thebigpos-sdk

Quick Start

import { Api } from "@matech/thebigpos-sdk";

const securityWorker = (data: any) => {
    return { headers: data }
}

const setBearerSecurityWorker = (accessToken:string) => {
    const data = {
        Authorization: `Bearer ${accessToken}`
    };

    apiClient.setSecurityData(data);
};

const apiClient = new Api({
    baseURL:
        process.env.REACT_APP_POS_API_HOST || 'https://api.thebigpos.com',
    securityWorker,
})

apiClient.api.getSiteConfiguration().then((response) => {
    console.log(response.data);
});

© 2024 Mortgage Automation Technologies. All rights reserved

2.10.0-rc3

8 months ago

2.10.0-rc2

8 months ago

2.10.0-rc1

8 months ago

2.9.0-rc3

8 months ago

2.9.0-rc2

8 months ago

2.9.0-rc1

8 months ago