Skip to content

darbymanning/churchsuite-js-sdk

Repository files navigation

header

ChurchSuite JavaScript SDK

⚠️ WIP, breaking changes likely ⚠️

Overview

This is an unofficial ChurchSuite JavaScript SDK, built to make life a little easier when working with the ChurchSuite API.

Features

  • 👌 Simple and intuitive API
  • 🔑 Fully Typed
  • 👷 ES and UMD builds
  • 🪞 Mirrors the ChurchSuite API (WIP)
  • 🤷‍♂️ More cool stuff

Usage

npm i churchsuite-js-sdk
import createClient from "churchsuite-js-sdk";

const options = {
  "X-Account": "demo",
  "X-Application": "Example",
  "X-Auth": "1234567890abc",
};

const client = createClient(options);

const user = await client.account.user();