You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With personal API tokens being deprecated, I wanted to switch to using service accounts to access camp and participants data. With my personal API token, I can get camp and events list just fine using the REST API, which allows me to then get participation data.
Using a service account token, I can access an individual person's information from the REST API, if that person is part of the group the service account was created for. I can also access an individual event's information, as well as this event's participation list. Finally, I can access the list of event of type simple for a particular group.
However, when trying to get a particular group's list of events of type camp, I get the following response :
{
"email": null,
"password": null
}
This behavior concerns URLs of the form /groups/:group_id/events/camp.json.
By contrast, accessing the list of events of a simple type gives the expected response, as for this request for event of simple type at the Group level : https://db.scout.ch/fr/groups/GROUP_ID/events/simple.json or https://db.scout.ch/fr/groups/GROUP_ID/events.json
I use redacted queries and responses for my own group because I could not find a current service API key for the test instance, apologies for the eyesore.
Thank you !
The text was updated successfully, but these errors were encountered:
Hallo zäme,
With personal API tokens being deprecated, I wanted to switch to using service accounts to access camp and participants data. With my personal API token, I can get camp and events list just fine using the REST API, which allows me to then get participation data.
Using a service account token, I can access an individual person's information from the REST API, if that person is part of the group the service account was created for. I can also access an individual event's information, as well as this event's participation list. Finally, I can access the list of event of type
simple
for a particular group.However, when trying to get a particular group's list of events of type
camp
, I get the following response :This behavior concerns URLs of the form
/groups/:group_id/events/camp.json
.By contrast, accessing the list of events of a
simple
type gives the expected response, as for this request for event ofsimple
type at the Group level :https://db.scout.ch/fr/groups/GROUP_ID/events/simple.json
orhttps://db.scout.ch/fr/groups/GROUP_ID/events.json
I use redacted queries and responses for my own group because I could not find a current service API key for the test instance, apologies for the eyesore.
Thank you !
The text was updated successfully, but these errors were encountered: