@matech/thebigpos-sdk
v2.11.0-rc2
Published
The Big POS Typescript SDK
Downloads
394
Readme
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