Skip to content

The backend for Plan A Visit - adding the household to Planning Center

Notifications You must be signed in to change notification settings

jordangrogan/PlanAVisit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlanAVisit

The backend for Plan A Visit - adding the household to Planning Center

To Run:

Create .env file with:

PCO_APP_ID=
PCO_SECRET=  

npm install
node app.js

POST Request from Gravity Forms

The app can handle POST requests via, for example, a Gravity Forms form (through the webhook plugin) with JSON data formatted like the following:

{
  "campus": "North Fayette",
  "your_firstname": "Jim",
  "your_lastname": "Halpert",
  "your_email": "[email protected]",
  "your_phone": "5701234567",
  "spouse_firstname": "Pam",
  "spouse_lastname": "Halpert",
  "child1_firstname": "CeCe",
  "child1_lastname": "Halpert",
  "child1_dob": "2010-03-04",
  "child1_info": "Not allowed to be picked up by Dwight Shrute",
  "child2_firstname": "",
  "child2_lastname": "",
  "child2_dob": "",
  "child2_info": ""
}

Note: spouse, child1, child2 data not required

About

The backend for Plan A Visit - adding the household to Planning Center

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published