Skip to content

PCO API Wrapper for Node.js and Example Node.js app for demonstrating how to access Planning Center's API using OAuth2

Notifications You must be signed in to change notification settings

planningcenter/pco_api_oauth_example_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCO API Wrapper for Node

Usage

const PCOApi = require('pco_api')

Once you have an access_token via oauth

PCOApi.configureClient({ oauthAccessToken: access_token })

Now you are ready to make API calls.

pcoClient = PCOApi.getClient()

Pass in any valid API path

pcoClient.get('/giving/v2/funds')

Or use 'dot' notation to specific PCO Apps and vertices

pcoClient.People.households.get(1345)

Apps + Resources

Using the dot notation syntax, the pattern is

client.App.resource.action()

Apps:

Actions

get

Returns a single resource, by id

pcoClient.Registrations.people.get(1234)

list

Returns a paginated list of the resouce

pcoClient.Registrations.people.list()

create

delete

Copyright & License

Copyright Ministry Centered Technologies. Licensed MIT.

About

PCO API Wrapper for Node.js and Example Node.js app for demonstrating how to access Planning Center's API using OAuth2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published