Method: /group_childgroups
Retrieve a list of groups that are children of the selected group. If a group has children, all events from the children will be included in the group's calendar. The children can have children of their own making it possible to establish a multi-level hierarchy of groups. This method returns only the children of the requested group at depth 1, not the entire group hierarchy.
Invocation
- This method can be invoked using either HTTP GET or HTTP POST.
- This method requires an API key
Request Parameters
| Parameter | Description | Type | Extra |
| key | Zvents Developer API key | String | required |
| id | ID of the group | Integer | required |
Example Request
- http://www.zvents.com/rest/group_childgroups?id=82&key=YOUR_API_KEY
Response Parameters
The response lists the groups that are children (if any) of the selected group.
| Parameter | Description | Type |
| id | The unique ID for the group (specified using an XML attribute). | Integer |
| name | The name of the group. | String |
| description | The description of the group. | String |
| url | The url of the group. | String |
| private | Specifies whether this group is private or public. Users cannot join private groups without an invitation. | Boolean |
| restrict_event_addition | Specifies whether this group restricts who can add events to the group calendar. Users cannot add events to restricted calendars. | Integer |
| creator_id | The ID of the user that created this group. | Integer |
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<rsp status="ok">
<stream_count>2</stream_count>
<group id="81">
<name>Featured Events</name>
<description>Events for the Zvents front page.</description>
<url>http://www.zvents.com</url>
<private>false</private>
<restrict_event_addition>1</restrict_event_addition>
<creator_id>1</creator_id>
</group>
<group id="267">
<name>Jazz Scene - Bay Area</name>
<description>your one-stop for all things Jazz in the Bay Area</description>
<url></url>
<private>false</private>
<restrict_event_addition>0</restrict_event_addition>
<creator_id>47</creator_id>
</group>
</rsp>
Output Fields
Note: The REST API does not return all possible fields for each item by default. Since some response fields are not used by most API users, these fields are suppressed from the response by default in order to reduce latency for the common calls. Additional fields can be enabled in the response using the fields parameters documented in the 'Optimizing API calls for performance' section.
Output Formats
REST responses can be returned in a number of different formats include XML, JSON and CSV. Read the documentation on output formats.
Possible Errors
This method may return one of the following errors.
- Unknown Group ID: The group ID requested does not exist.
- Insufficient Permissions: You are not allowed to see details for this group.
- Invalid API Key: The API key supplied is not valid.
- Call Limit Exceeded: The API key has exceeded the daily maximum number of calls.