omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. wjshea
    3. Posts

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by wjshea

    • RE: Getting people from a group in contacts api

      I figured it out...

      There is a method on group called get_all_members. I must have missed in when reviewing the docs.

      posted in Pythonista
      wjshea
      wjshea
    • Getting people from a group in contacts api

      Hi, I’m trying to get a list of people from a group.

      def test_get_contacts_from_group_name():
      	groupName = "Mail List Test"
      	
      	groups = contacts.get_all_groups()
      	for group in groups:
      		if (groupName == group.name):
      			members_group = contacts.get_group(group.id)
      			print(members_group)
      			members_group.get_all_people()
      			#for member in members_group:
      			#	print (member.address)
      			
      		else:
      			print('-1')	
      
      

      Group does not have a member called get_all_members. Are there away to get members from a group?

      Thanks

      posted in Pythonista
      wjshea
      wjshea