Skip to content

Get activities users

To list the users associated with an activity, use the get_activities_users method:

from pyholdsport import Holdsport, HoldsportActivitiesUser

activity_id = 12345

with Holdsport("username", "password") as holdsport:
    activities_users: list[HoldsportActivitiesUser] = (
        holdsport.get_activities_users(activity_id=activity_id)
    )
    for user in activities_users:
        print(user)

This endpoint returns responses such as Attending, Not attending, Available, and Selected. It omits nonresponders that may appear with Unknown status in an activity's embedded activities_users list. Neither representation should be assumed to be a complete team roster.

Learn more about the HoldsportActivitiesUser object.