Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@picahq/unified

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@picahq/unified

Node SDK for the Pica Unified API

latest
npmnpm
Version
1.0.2
Version published
Maintainers
4
Created
Source

@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/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.

Keywords

picahq

FAQs

Package last updated on 28 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts