@picahq/unified
The Pica Unified SDK library for Node.js provides convenient access to the Pica UnifiedAPI from applications written in server-side JavaScript.
Install
Using npm:
npm i @picahq/unified
Using yarn:
yarn add @picahq/unified
Configuration
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.