1.0.2 • Published 12 months ago
@picahq/unified v1.0.2
@picahq/unified
The Pica Unified SDK library for Node.js provides convenient access to the Pica Unified API from applications written in server-side JavaScript.
Install
Using npm:
npm i @picahq/unifiedUsing yarn:
yarn add @picahq/unifiedConfiguration
To use the library you must provide an API key and Connection key. Both are located in the Pica dashboard.
import { Pica } from "@picahq/unified";
const pica = new Pica("sk_live_1234");
const response = await pica
.customers("live::xero::acme-inc")
.get("cus_OT3CLnirqcpjvw");
console.log(response);Testing
Configure the .env file based on the .env.sample provided with an Pica Secret Key, Connection Key and Model to test.
Full Documentation
Please refer to the official Pica Documentation and API Reference for more information and Node.js usage examples.