planningcenter / developers

Planning Center API docs and support
https://developer.planning.center/docs/
85 stars 8 forks source link

Get Services Attendance #1045

Closed hazza-j closed 1 year ago

hazza-j commented 1 year ago

Related Product Which product is this question related to? Services

Describe the question I'm currently trying to get information for the attendance for a Plan in Services through the API, but can't find it anywhere. This would correspond to the "Take Attendance" Team Action for a Plan on the front end of Services

What have you tried that worked?

What have you tried that didn't work? I have looked through Services API

Additional context

Here's an example of the people from a plan that have attended and could therefore be found in the API image

I have..

pastorhudson commented 1 year ago

Disclaimer: I'm not a Planning Center Employee. I'm just a dev that works with the api a lot.

I think you're looking for this https://developer.planning.center/docs/#/apps/services/2018-11-01/vertices/attendance

jbarrieault commented 1 year ago

Thanks for chiming in, @pastorhudson!

Attendances were not a part of our public API at the time @hazza-j inquired. But after looking into, we were able to make it public!

The only thing I would note, is the "Example Request" the docs page lists isn't what I would suggest. Rather, you are probably going to want to go through the Service Type > Plan > Attendances path, ie: curl https://api.planningcenteronline.com/services/v2/service_types/1/plans/1/attendances

I'm not sure why our documentation generator is choosing the series path, so I'll need to look into that! But I will close this issue now that the API is public.

Cheers