0.4.0 • Published 1 year ago

@chemicalluck/recharge-api-node v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Recharge API Client for Node.js

This is a Node.js client for the Recharge API. It is a wrapper around the Recharge API, which is a RESTful API that allows you to interact with your Recharge account programmatically.

npm package NPM Version Release & Publish License

Installation

To install the Recharge API client, run the following command:

npm install @ChemicalLuck/recharge-api-node

Usage

To use the Recharge API client, you will need to create a new instance of the Recharge class and pass in your Recharge API key. You can then use the methods provided by the client to interact with the Recharge API.

import { Recharge } from "@ChemicalLuck/recharge-api-node";

const recharge = new Recharge("your-api-key");

const customer_id = 12345;
const addresses = await recharge.v1.address.list(customer_id);

console.log(addresses);

For more details on the content of the reponses, visit the official recharge API docs.

Resources Available

v1(2021-01)

  • Address
  • Charge
  • Checkout
  • Customer
  • Discount
  • Metafield
  • Notification
  • Onetime
  • Order
  • Product
  • Shop
  • Subscription
  • Webhook
  • Async Batch

v2(2021-11)

  • Address
  • BundleSelection
  • Charge
  • Checkout
  • Collection
  • Customer
  • Discount
  • Metafield
  • Notification
  • Onetime
  • Order
  • Payment Method
  • Plan
  • Retention Strategy
  • Subscription
  • Webhook
  • Async Batch
  • Token
  • Account
  • Event
  • Store

Recharge Documentation

License

MIT

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago