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/
This is an example Slim PHP app for demonstrating how one might build an app to authenticate any PCO user and then subsequently use that authentication to query the API.
You can learn more about Planning Center's API here.
-
Create an app at api.planningcenteronline.com.
Set the callback URL to be
http://localhost:6001/auth/complete. -
Install the required packages:
composer install
-
Set your Application ID and Secret in the environment and run the app:
export OAUTH_APP_ID=abcdef0123456789abcdef0123456789abcdef012345789abcdef0123456789a export OAUTH_SECRET=0123456789abcdef0123456789abcdef012345789abcdef0123456789abcdef0 composer serve
-
Visit localhost:6001.
Copyright Ministry Centered Technologies. Licensed MIT.