Forums

Get Group Leader Name and Email Address

I'm building a table with the groups we have at our church. I want to add the name and email address of at least one of the leaders per group. What's the best way to get the name and email addresses for the group leaders associated with their respective groups?

Hi Steve,


Thanks for the email.


Currently this isn't possible with the API. You'd have to either name the group somehow to relate to the leaders, or manually enter this information on your end.


Stewart


Hi Steve. 


Just thought I'd let you know that if you perform a groups/getAll or groups/getInfo API call, and include the "people" field, it will now return the position of the members.

{
    "status": "ok", 
    "generated_in": "0.039", 
    "group": [
        {
            "status": "Active", 
            "name": "Bible Reading", 
            "meeting_frequency": "", 
            "date_modified": "2015-06-23 13:47:22", 
            "meeting_state": "NSW", 
            "meeting_address": "", 
            "people": {
                "person": [
                    {
                        "firstname": "John", 
                        "phone": "", 
                        "mobile": "", 
                        "lastname": "Doe", 
                        "id": "5d96e212-05d1-11e6-8c36-063ef7799403", 
                        "preferred_name": "", 
                        "position": "Assistant Leader", 
                        "email": ""
                    }, 
                    {
                        "firstname": "Gary", 
                        "phone": "", 
                        "mobile": "", 
                        "lastname": "Jones", 
                        "preferred_name": "", 
                        "position": "Leader", 
                        "email": ""
                    }, 
                    {
                        "firstname": "Susan", 
                        "phone": "", 
                        "mobile": "", 
                        "lastname": "Boyle", 
                        "preferred_name": "", 
                        "position": "Zone Leader", 
                        "email": ""
                    }, 
                    {
                        "firstname": "Kafren", 
                        "phone": "4123567", 
                        "mobile": "", 
                        "lastname": "Smith", 
                        "preferred_name": "", 
                        "position": "", 
                        "email": ""
                    }
                ]
            }, 
            "meeting_country": "Australia", 
            "meeting_postcode": "", 
            "meeting_city": "", 
            "meeting_day": "", 
            "date_added": "2016-06-23 00:51:37", 
            "meeting_time": ""
        }
    ]
}

 

Hope this helps,

Stewart


Login or Signup to post a comment