planningcenter

0.0.3 • Public • Published

Planning Center Online for Node.js

A Node.js library for the planningcenteronline.com API.

Basic usage

Make a client instance with your Personal Access Token:

let opts = {
    applicationId: 'xxxxx',
    secret: 'xxxxx'
};
let client = new PlanningCenterClient(opts);

Or using an OAuth Access Token:

let opts = {
    accessToken: 'xxxxx'
};
let client = new PlanningCenterClient(opts);

Then make a command and send it:

let command = new GetPersonCommand();
let result = await client.send(command);

Advanced usage

You can chain function calls to add URL parameters to the API call:

let command = new GetPersonCommand()
    .queryByFirstName("John")
    .includeEmails()
    .orderByBirthdate();
let result = await client.send(command);

The queryByXXXX, includeXXXX, and orderByXXXX functions match the Planning Center API docs. Just change the snake_case parameter names to CamelCase and prepend with either queryBy, include, or orderBy.

Supported APIs

People (version 2022-01-28)

  • Person: /people/v2/people
  • Email: /people/v2/emails

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.34latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.34
0.0.20
0.0.10

Package Sidebar

Install

npm i planningcenter

Weekly Downloads

4

Version

0.0.3

License

ISC

Unpacked Size

20 kB

Total Files

16

Last publish

Collaborators

  • swong42