planningcenter / developers

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

Several APIs are not working #1180

Closed ClifDunaway closed 4 months ago

ClifDunaway commented 4 months ago

I use the APIs to pull data for First Baptist church, Simpsonville, SC. Recently, I discuvered that the APIs are now showing a 404 error message.

Here is one example:

https://api.planningcenteronline.com/check-ins/v2/check_ins/1/event_period

Here is what is returned:

{"errors":[{"status":"404","title":"Not Found","detail":"The resource you requested could not be found"}]}

Affected Product Which product does this bug affect?

Describe the bug

To Reproduce

Expected behavior

Screenshots

Additional Context:

Additional context

I have..

csdunaway commented 4 months ago

Here are more API calls that are not working either: https://api.planningcenteronline.com/check-ins/v2/check_ins/1/event_period/1/check_ins

https://api.planningcenteronline.com/check-ins/v2/check_ins/1/check_in_times

https://api.planningcenteronline.com/check-ins/v2/events/1/current_event_times

https://api.planningcenteronline.com/check-ins/v2/events/1/event_labels

kylemellander commented 4 months ago

When you are attempting to access specific resources, if that resource does not exist in your organization, it is expected behavior that you would get a 404 error.

It looks like in the URLs that you are attempting to access, you are trying to access check-ins and events with an id of 1, which I am guessing is not actually a check-in or event in your org.

You might want to try to access https://api.planningcenteronline.com/check-ins/v2/check_ins or https://api.planningcenteronline.com/check-ins/v2/events/ to see the list of valid check-ins and events and then you can use the ids from those to access your data about the specific resources with the urls like you have above with the valid ids substituted in.

csdunaway commented 4 months ago

These are the URLs that I pulled directly from the developer.planning.center documents online!

Thanks, Clif Dunaway


From: Kyle Mellander @.> Sent: Friday, April 12, 2024 4:08:03 PM To: planningcenter/developers @.> Cc: Clifton Dunaway @.>; Comment @.> Subject: Re: [planningcenter/developers] Several APIs are not working (Issue #1180)

When you are attempting to access specific resources, if that resource does not exist in your organization, it is expected behavior that you would get a 404 error.

It looks like in the URLs that you are attempting to access, you are trying to access check-ins and events with an id of 1, which I am guessing is not actually a check-in or event in your org.

You might want to try to access https://api.planningcenteronline.com/check-ins/v2/check_ins or https://api.planningcenteronline.com/check-ins/v2/events/https://api.planningcenteronline.com/check-ins/v2/events to see the list of valid check-ins and events and then you can use the ids from those to access your data about the specific resources with the urls like you have above with the valid ids substituted in.

— Reply to this email directly, view it on GitHubhttps://github.com/planningcenter/developers/issues/1180#issuecomment-2052454651, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA73RG2QJEUB54E56RJB7GTY5A5KHAVCNFSM6AAAAABGETGC22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJSGQ2TINRVGE. You are receiving this because you commented.Message ID: @.***>

kylemellander commented 4 months ago

Those are examples that do not contain real world data. The explorer might give you a better feel for how this works with real data.

kylemellander commented 4 months ago

It seems like this is resolved. Let us know if you have any more questions or concerns.