Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 985 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 985 Bytes

PCO API OAuth Slim PHP Example

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.

Setup

  1. Create an app at api.planningcenteronline.com.

    Set the callback URL to be http://localhost:8000/auth/complete.

  2. Install the required packages:

    composer install
  3. Set your Application ID and Secret in the environment and run the app:

    export OAUTH_APP_ID=abcdef0123456789abcdef0123456789abcdef012345789abcdef0123456789a
    export OAUTH_SECRET=0123456789abcdef0123456789abcdef012345789abcdef0123456789abcdef0
    composer serve
  4. Visit localhost:8000.

Copyright & License

Copyright Ministry Centered Technologies. Licensed MIT.