Get names of members via python


#1

Hi! Could you help me pls. I started to researching of API and I need simple thing - to get only names of members of my project.

project = asana_app.get_current_project()
print (project.get_members.())

I get something like this: object at 0x7fe64422c080

How can I convert it to simple string with only names of members?


#2

I think that you need to loop over the members object and get the member.name.


#3

Yea, I know that it will be something like loop, but how exactly?) I need sintaxis). Member fuction has no name attribute.

def export_to_sheets():
project = asana_app.get_current_project()
members = project.get_members()

for i in members:
    print **(i.name())** _- how?)_

#4

Anybody please)