billdeitrick / pypco

A Python client for the Planning Center Online API.
MIT License
39 stars 13 forks source link

How to query by #75

Closed impactcolor closed 3 months ago

impactcolor commented 3 months ago

Thanks for this awesome package. Just wondering how can I query by? The api documentation says Query by is optional. in example: for person in pco.iterate('/people/v2/people'): I attempted '/people/v2/people?gender=male' to no avail. I wanted here to return all the people where male.

impactcolor commented 3 months ago

Never mind found in the documentation here: https://github.com/billdeitrick/pypco/blob/master/docs/source/apitour.md

pastorhudson commented 3 months ago

Adding this for future searches.

You can find the query parameters here: https://developer.planning.center/docs/#/apps/people/2023-03-21/vertices/person. Scroll down to Query By. You'll see all the options. Also the API Explorer https://api.planningcenteronline.com/explorer provides a lot of help in constructing the url.