Node.js SDK for Circle API
npm install @circle-fin/circle-sdk

The Circle Node library provides convenient access to the Circle API for
applications written in server-side JavaScript. For the API reference, see the Circle API docs.
Node 10 or higher.
Install the package with:
``sh`
npm install @circle-fin/circle-sdk --saveor
yarn add @circle-fin/circle-sdk
In order to make API calls, you will need an API key. Once you obtain one, you can use this SDK to make API calls as follows:
`Typescript
import { Circle, CircleEnvironments, SubscriptionRequest } from "@circle-fin/circle-sdk";
// Initialize API driver
const circle = new Circle(
'
CircleEnvironments.sandbox // API base url
);
async function createSubscription() {
const subscribeReq: SubscriptionRequest = {
endpoint: "https://example.org/handler/for/notifications"
};
const subscribeResp = await circle.subscriptions.createSubscription(subscribeReq);
console.log(subscribeResp.data);
}
createSubscription();
`
sh
yarn install
`1. Run the codegen command to generate the source code for this SDK from the
sdk.json OpenAPI specification file:
`sh
yarn gen-sdk
`2. Run all tests:
`bash
yarn test
``Please follow the [Conventional Commits][convencomms] format for all commits when creating a contributing pull request for this repo.
[convencomms]: https://www.conventionalcommits.org/en/v1.0.0/