Likely not relevant anymore, but in the swagger_client package I downloaded it's named get_activity_by_id rather than getActivityById