Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.46 KB

README.md

File metadata and controls

76 lines (50 loc) · 1.46 KB

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.