2.9.0 • Published 1 month ago

@circle-fin/circle-sdk v2.9.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

Circle APIs Node.js Library

npm version npm downloads

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.

Requirements

Node 10 or higher.

Installation

Install the package with:

npm install @circle-fin/circle-sdk --save
# or
yarn add @circle-fin/circle-sdk

Usage

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:

import { Circle, CircleEnvironments, SubscriptionRequest } from "@circle-fin/circle-sdk";

// Initialize API driver
const circle = new Circle(
    '<your-api-key>',
    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();

Development

Clone this repo and install dependencies using

yarn install
  1. Run the codegen command to generate the source code for this SDK from the sdk.json OpenAPI specification file:

    yarn gen-sdk
  2. Run all tests:

    yarn test

Contributions

Please follow the Conventional Commits format for all commits when creating a contributing pull request for this repo.

2.9.0

1 month ago

2.8.0

2 months ago

2.7.1

2 months ago

2.7.0

3 months ago

2.3.0

8 months ago

2.2.0

8 months ago

2.5.0

8 months ago

2.4.0

8 months ago

2.6.1

7 months ago

2.6.0

7 months ago

2.6.2

5 months ago

2.1.0

10 months ago

2.0.0

1 year ago

1.6.2

1 year ago

1.7.0

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.0.2

2 years ago

1.1.0

1 year ago

1.3.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.1-beta.0

2 years ago

0.1.0-beta.0

2 years ago

0.1.0-alpha.0

2 years ago