I’m working on a couple of scripts with the Python library and wondered whether I could ask you get some further explanation / examples.
I’ve realised that due to the massive amount of data that is recorded, that API calls appear to be paginated / restricted – and therefore I’ve noticed that in a lot of the API calls, you have supplied the following optional parameters – for example in the LAMP.ActivityEvent.all_by_participant method:
I can’t seem to find in the documentation how to use these extra parameters.
My question is I’m just testing the script to retrieve some data now, but once participants start to answer a lot of different Activities – I’m wondering whether the responses will be paginated and won’t all be returned (I noticed this behaviour when looking for the device ID to send notifications inside SensorEvents – after my device started recording motion, I couldn’t then query for the device ID until I added origin=lamp.analytics to the call!), is it possible to query an activity event specifically in the query?
Just wondered if it’s possible to specify an activity ID, sort of like:
result = LAMP.ActivityEvent.all_by_participant(participant_id, origin=activity_id)