Add your Planning Center interactions into your Orbit workspace with this community-built integration.
✨ This is a community project. The Orbit team does its best to maintain it and keep it up to date with any recent API changes.We welcome community contributions to make sure that it stays current. ✨ |
---|
To set up this integration you will need your Planning Center API secret and your Planning Center app ID. See the below table for instructions on where to find them, along with your Orbit API credentials.
The application requires the following environment variables:
Variable | Description | More Info |
---|---|---|
PLANNING_CENTER_APP_ID |
Planning Center App ID | Create a new "Personal Access Token" in the Planning Center Developer Dashboard, your Application ID will be shown after creating it. |
PLANNING_CENTER_API_SECRET |
Planning Center API secret | Create a new "Personal Access Token" in the Planning Center Developer Dashboard, your API secret will be shown after creating it. |
ORBIT_API_KEY |
API key for Orbit | Found in Account Settings in your Orbit workspace |
ORBIT_WORKSPACE_ID |
ID for your Orbit workspace | Last part of the Orbit workspace URL, i.e. https://app.orbit.love/my-workspace , the ID is my-workspace |
To install this integration in a standalone app, add the gem to your Gemfile
:
gem "planningcenter_orbit"
Then, run bundle install
from your terminal.
You can instantiate a client by either passing in the required credentials during instantiation or by providing them in your .env
file.
client = PlanningcenterOrbit::Client.new(
orbit_api_key: YOUR_API_KEY,
orbit_workspace_id: YOUR_ORBIT_WORKSPACE_ID,
pc_app_id: YOUR_PLANNING_CENTER_APP_ID,
pc_api_secret: YOUR_PLANNING_CENTER_API_SECRET
)
client = PlanningcenterOrbit::Client.new
By default, the integration will only import activities that are newer than the newest Planning Center activity in your Orbit workspace. You may want to perform a one-time historical import to fetch all your previous Planning Center activities and bring them into your Orbit workspace. To do so, instantiate your client
with the historical_import
flag:
client = PlanningcenterOrbit::Client.new(
historical_import: true
)
Once, you have an instantiated client, you can fetch event check-ins from Planning Center and send them to Orbit by invoking the #check_ins
instance method:
client.check_ins
You can also use this package with the included CLI. To use the CLI pass in the required environment variables on the command line before invoking the CLI:
$ ORBIT_API_KEY=... ORBIT_WORKSPACE_ID=... LINKEDIN_TOKEN=... LINKEDIN_ORGANIZATION=... bundle exec planningcenter_orbit --check-event-checkins
Add the --historical-import
flag to your CLI command to perform a historical import of all your Planning Center data using the CLI.
⚡ You can set up this integration in a matter of minutes using our GitHub Actions template. It will run regularly to add new activities to your Orbit workspace. All you need is a GitHub account.
See our guide for setting up this automation.
We 💜 contributions from everyone! Check out the Contributing Guidelines for more information.
This is available as open source under the terms of the MIT License.
This project uses the Contributor Code of Conduct. We ask everyone to please adhere by its guidelines.