Events
An event for a group describes where the group meets and when.
Notes ::
- By passing in the
content-type
ofapplication/help
in theaccept
header or using the {format} parameterhelp
from https://CHURCHCODE.fellowshiponeapi.com/groups/v1/events, the API will return an html representation of the help documents for this resource (*authentication not required*)
Authentication
This method requires Authentication
Resource Structure
This resource conforms to the following XSD
Methods
Events ::
- list [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/{id}/events
Method: list [GET]
The list
method will return a list of events.
Notes ::
- By passing in the
content-type
ofapplication/xsd
in theaccept
header or using the {format} parameterxsd
the API will return anxsd
for a single version of this resource (authentication not required)
Content-types ::
- application/json
- application/xml
- application/xsd
- application/help
Format ::
- json
- xml
- xsd
- help
Parameters ::
- {format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/{id}/events.{format}
- [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/{id}/events?format={format}
- [Header] Accept : {Content-type}
Sample Response ::
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/50377/events
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/50377/events
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 08 Nov 2010 17:08:05 GMT
Content-Length: 253
<events>
<event json:Array="true" id="3083" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/events/3083">
<name>Tim's People List1- Default Event</name>
<description>Tim's People List1</description>
</event>
<event json:Array="true" id="3084" uri="https://CHURCHCODE.fellowshiponeapi.com/groups/v1/events/3084">
...
</event>
</events>
Given: [GET] https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/50377/events.json
Response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://CHURCHCODE.fellowshiponeapi.com/groups/v1/groups/50377/events.json
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 02 Nov 2010 20:38:35 GMT
Content-Length: 197
{
"events":{
"event":[
{"@array":"true",
"@id":"3083",
"@uri":"https://CHURCHCODE.fellowshiponeapi.com/groups/v1/events/3083",
"name":"Tim's People List1- Default Event",
"description":"Tim's People List1"
},
{"@array":"true",
"@id":"3084",
...
}
]
}
}