This repository is no longer maintained and has been archived for historical purposes. For more information on using our APIs and other current developer resources, check out the developer page on our site: https://developer.planning.center/
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)
Using the dot notation syntax, the pattern is
client.App.resource.action()
Apps:
Returns a single resource, by id
pcoClient.Registrations.people.get(1234)
Returns a paginated list of the resouce
pcoClient.Registrations.people.list()
Copyright Ministry Centered Technologies. Licensed MIT.