Closed mphuff closed 4 years ago
I think what you want is rel.people.list()
import pypco
import os
pco = pypco.PCO(os.environ.get('PCO_CLIENT_ID'),
os.environ.get('PCO_CLIENT_SECRET'))
house = pco.people.households.get('9272955')
for member in house.rel.people.list():
print(member)
You can also do:
house_members = pco.people.households.get('9272955').rel.people.list()
That did the trick! Thanks @pastorhudson
Glad to help!
It appears that because of https://github.com/billdeitrick/pypco/blob/master/pypco/models/people.py#L76 that household_memberships is not available as an entity.
I've obtained a list of household_ids and attempting to obtain them as follows: